--
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/d9caf16a-b6d0-4fc8-b979-326379186353%40googlegroups.com.
Hi Vincent,I don't think we have such functionality.Also, having a return value in the fuzz target was probably a mistake - users find all kinds of ways to use it incorrectly :)What is your use case for not adding a corpus element?--kcc
On Sun, Feb 16, 2020 at 4:16 AM Vincent Ulitzsch <vincent...@gmail.com> wrote:
Hi,--I was wondering if it is possible to tell libfuzzer to not add a certain testcase to the current corpus, even if it yielded new coverage. go-fuzz [1], for example, supports this by leveraging the return value. From the documentation of go-fuzz:"The function must return 1 if the fuzzer should increase priority of the given input during subsequent fuzzing (for example, the input is lexically correct and was parsed successfully); -1 if the input must not be added to corpus even if gives new coverage; and 0 otherwise; other values are reserved for future use."
Is there something similar for libfuzzer and libprotobuf? If not, do you think this would be an interesting feature to implement via return values?
Thanks,
Vincent
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libf...@googlegroups.com.
I am trying to fuzz a programming language interpreter and want to reject testcases which yielded an exception.My hope is that this will yield a test corpus which only consists of semantically valid testcases.
The problem is, in order to know whether a testcase yields an exception, I need to run it against the interpreter - so I need some way of rejecting a testcase although it yielded new coverage.
I ended up hacking on libfuzzer/libprotobuf-mutator to implement this behavior via return value and it seems to be working, but I am still open to any suggestions on other ways to achieve this.
--
Thank you,
Vincent
On Tuesday, 18 February 2020 19:14:23 UTC+1, Konstantin Serebryany wrote:Hi Vincent,I don't think we have such functionality.Also, having a return value in the fuzz target was probably a mistake - users find all kinds of ways to use it incorrectly :)What is your use case for not adding a corpus element?--kccOn Sun, Feb 16, 2020 at 4:16 AM Vincent Ulitzsch <vincent...@gmail.com> wrote:Hi,--I was wondering if it is possible to tell libfuzzer to not add a certain testcase to the current corpus, even if it yielded new coverage. go-fuzz [1], for example, supports this by leveraging the return value. From the documentation of go-fuzz:"The function must return 1 if the fuzzer should increase priority of the given input during subsequent fuzzing (for example, the input is lexically correct and was parsed successfully); -1 if the input must not be added to corpus even if gives new coverage; and 0 otherwise; other values are reserved for future use."
Is there something similar for libfuzzer and libprotobuf? If not, do you think this would be an interesting feature to implement via return values?
Thanks,
Vincent
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/d9caf16a-b6d0-4fc8-b979-326379186353%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/d2cd5ce6-be5c-454b-b338-8f692e1fc924%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/d2cd5ce6-be5c-454b-b338-8f692e1fc924%40googlegroups.com.