FAQ
I would expect that modifying the data should be fine. Of course, if
you don't do it after Fuzz function returns.
Please file a bug with reproducer at:
https://github.com/dvyukov/go-fuzz/issues/new

Ok, I try to make reproducer, and fill a bug report.
Many thx for this great tool.

Le mardi 3 novembre 2015 13:44:15 UTC+1, Dmitry Vyukov a écrit :
On Fri, Oct 30, 2015 at 8:05 PM, Jérôme LAFORGE
<jerome....@gmail.com <javascript:>> wrote:
Hello all,
Since one week, I did lot of fuzzing on our internal network stack and that
allows me to find couple af nasty bugs (infinite loop with memory leak,
index out of range error and some corrupt data with bad use of slice).
So first of all, I want to thank you for this great golang variant of
AFL.

Sounds great.
Thanks!
Note that go-fuzz is better than AFL in some aspects.
I put more and more stuff to test into func Fuzz(data []byte) for
increasing
my fuzing scope on this network stack.
My fuzz test does lot modifications or append on the byte array that is
passed with func Fuzz(data []byte)

I notice that :
- If I don't copy the data []byte, I have high rate (~1/500) but without
crasher
- If I copy* the data []byte, I have expected rate (~1/10000)

* : the copy is done like this :
func Fuzz(roData [] data) int {
rwData := make([]data, len(roData))
copy(rwData, roData)
...

}

Should I consider this original data as read only data or this behavior
could hidden another nasty bug?

I would expect that modifying the data should be fine. Of course, if
you don't do it after Fuzz function returns.
Please file a bug with reproducer at:
https://github.com/dvyukov/go-fuzz/issues/new
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 23 of 23 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 27, '15 at 1:58p
activeNov 3, '15 at 6:39p
posts23
users8
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase