iverilog/ivlpp
Sean Anderson b18d90a2d9 ivlpp: Fix segfault in macro_start_args
macro_start_args truncates def_buf, but does not check to ensure that
someone has allocated def_buf first. This will cause a null pointer
dereference if the first access to def_buf while parsing a file is a
macro invocation. Fix this by avoiding truncating def_buf if it is NULL,
as it is effectively already truncated.

Fixes: 680196953 ("Add support for text macros with arguments.")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
2022-10-30 18:02:40 -04:00
..
Makefile.in Update cppcheck to not run posix and add some -U flags 2021-01-02 13:23:59 -08:00
globals.h Add option to only warn about macro redefinitions that change the text. 2017-11-08 19:50:42 +00:00
ivlpp.txt Spelling fixes in .txt files 2015-05-25 12:52:03 -07:00
lexor.lex ivlpp: Fix segfault in macro_start_args 2022-10-30 18:02:40 -04:00
main.c Pass fail information from the preprocessor to the compiler 2021-01-10 18:27:31 -08:00