mailing list of musl libc
 help / color / mirror / code / Atom feed
* Re: is there a fuzzer for libc? (fwd)
@ 2014-06-19 15:07 Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2014-06-19 15:07 UTC (permalink / raw)
  To: musl

Looks interesting.

----- Forwarded message from Konstantin Serebryany <konstantin.s.serebryany@gmail.com> -----

In-Reply-To: <20140603183434.GK507@brightrain.aerifal.cx>
From: Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
Date: Thu, 19 Jun 2014 11:53:51 +0400
Message-ID: <CAGQ9bdwNm+OgzKikSD+yvf8BxavEO=UBkNM8quPYpXsh3qZTfw@mail.gmail.com>
Subject: Re: is there a fuzzer for libc?
To: Rich Felker <dalias@libc.org>
Cc: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>, GNU C Library <libc-alpha@sourceware.org>

Quick update: I found regfuzz, a fuzzer for regular expressions.
https://code.google.com/p/regfuzz/
A short run revealed a least 3 somewhat scary situations in regcomp:
infinite loop, quick memory exhaustion and a memory leak:
I've submitted two bugs so far; if they are considered interesting and
get fixed I can file more :)
 https://sourceware.org/bugzilla/show_bug.cgi?id=17069
 https://sourceware.org/bugzilla/show_bug.cgi?id=17070

I also wrote a naive fuzzer for wildcards and it found a buffer
overflow in fnmatch:
https://sourceware.org/bugzilla/show_bug.cgi?id=17062 (already fixed).

--kcc


On Tue, Jun 3, 2014 at 10:34 PM, Rich Felker <dalias@libc.org> wrote:
> On Tue, Jun 03, 2014 at 11:00:44AM +0400, Konstantin Serebryany wrote:
>> Thanks for the answer -- it confirms what I concluded from a quick web search.
>> There are however some libc functions that might be easier to fuzz
>> (e.g. gethostbyname),
>> so I thought that there could be at least something.
>
> Sure, one class of functions that aren't too hard to fuzz is functions
> which take only integer and pointer-to-string arguments with no
> constraints on them. However it still may be hard to hit the
> meaningful cases. I think fuzzing gethostbyname would be pretty slow
> since you'd end up waiting for the dns request to fail for nearly
> every random string you generated.
>
> Rich

----- End forwarded message -----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-19 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-19 15:07 is there a fuzzer for libc? (fwd) Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).