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


On Tue, Aug 12, 2014 at 2:02 AM, Gary Benson <gbenson@redhat.com> wrote:

> +#include <demangle.h>

Include demangle.h with "".

> +int
> +main (int argc, char *argv[])
> +{
> +  char symbol[2 + MAXLEN + 1] = "_Z";
> +  int seed = -1, seed_set = 0;
> +  int count = 0, maxcount = -1;

I think that by default the program should stop.  That will make it
possible to eventually run as part of "make check".  Give it some
number of iterations that stops it in a second or so.  You can still
have it run forever by using -m -1.

This is OK with those changes.

Thanks.

Ian


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