This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Demangler fuzzer


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).

Cheers,
Gary

-- 
http://gbenson.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]