Memory exhausted error

<[email protected]>
Newsgroups gmane.comp.gnu.m4.bugs
Message-ID <[email protected]>
I’m porting flex/bison on windows and build M4 code inside executable.

After upgrading gnulibs I caught a runtime error “memory exhausted” in macro.c file.

…

if (use_argc_stack)

obstack_free (&argc_stack, argv[0]);

else

obstack_free (&arguments, NULL);

obstack_blank (&argv_stack, -argc * sizeof (token_data *)); << crash here!!! Line 390

}

It seems now obstack_blank function doesn’t allow negative numbers (see /lib/obstack.h file)

Because obstack.temp.i has type as size_t (it was ptr_diff_t before).

Could you verify the following line works as expected in Linux?

obstack_blank (&argv_stack, -argc * sizeof (token_data *));

Best regards,

Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.