This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Demangler fuzzer
- From: Gary Benson <gbenson at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, David Malcolm <dmalcolm at redhat dot com>, Andi Kleen <andi at firstfloor dot org>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Aug 2014 10:33:00 +0100
- Subject: Re: [PATCH] Demangler fuzzer
- Authentication-results: sourceware.org; auth=none
- References: <20140811092703 dot GA3193 at blade dot nx> <87bnrrjcbo dot fsf at tassilo dot jf dot intel dot com> <1407769769 dot 28418 dot 66 dot camel at surprise> <20140811160420 dot GA3355 at blade dot nx> <20140811175710 dot GD1784 at tucnak dot redhat dot com> <20140812090240 dot GA15234 at blade dot nx> <20140812090745 dot GH1784 at tucnak dot redhat dot com>
Jakub Jelinek wrote:
> On Tue, Aug 12, 2014 at 10:02:40AM +0100, Gary Benson wrote:
> > I've removed the timeout code. Users can limit the run by setting a
> > maximum number of iterations. That's more consistent for testing
> > anyway: 5000000 iterations is 5000000 iterations wherever you run it.
> > How about this one?
> LGTM, but I think it would be best to hear from Ian on this too.
Cool, I'll wait for Ian's reply.
> Perhaps MAXLEN could be a command line option (then you'd need to
> allocate the buffer dynamically?), but not sure if it is worth it.
Right now it generally crashes after a few hundred thousand iterations
(usually under five seconds). It might be worth extending the fuzzer
once the bugs are fixed such that it runs without crashing for longer.
(I'll likely fix some of them myself in gaps between projects).