TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go Fuzz Testing

114 pointsby andreiabout 3 years ago

7 comments

throwawaylala1about 3 years ago
That first example is deceptive. In this line:<p><pre><code> for i := 0; i &lt;= n; i++ { </code></pre> The &quot;&lt;=&quot; character just looks like a &quot;&lt;&quot; character due to the typeface that the author chose. I&#x27;m going to assume that wasn&#x27;t an accident because it perfectly masks the obvious bug in the for loop.<p>When I did a quick scan of that code it looked good to me. Then he claimed it should panic and I felt crazy. So I copy&#x2F;pasted the code into an editor to see wtf was going on and sure enough it was &quot;&lt;=&quot;.
评论 #30851530 未加载
lalaithionabout 3 years ago
<p><pre><code> go test fuzz v1 string(&quot;000000000000000000000000000000Ö00000000000000000000000000000&quot;) rune(&#x27;\u0083&#x27;) int(60) </code></pre> Interesting that the minimization engine wasn&#x27;t able to shrink this further.
评论 #30846223 未加载
jiehongabout 3 years ago
It’s a bit surprising to have fuzzing as part of the standard tool chain, but not property based testing.<p>I guess we still need to rely on something like gopter.
评论 #30852169 未加载
评论 #30851705 未加载
评论 #30848687 未加载
spencerwgreeneabout 3 years ago
I&#x27;m pretty sure fmt.Println(&quot;HELLO&quot;, str, len(str), len(result), n) isn&#x27;t supposed to be in the final solution? :)
评论 #30849119 未加载
rendallabout 3 years ago
Neat, Andrei. Good luck with this venture!
Thaxllabout 3 years ago
Curious if fuzzing is a common thing in network programming, does fuzzing plays nicely with binary inputs?
评论 #30847184 未加载
评论 #30846581 未加载
monkpitabout 3 years ago
What’s the rationale behind bundling a fuzzing library in the language instead of as a separate library?
评论 #30846551 未加载
评论 #30846320 未加载
评论 #30846190 未加载