gcc/libiberty/testsuite
Mark Wielaard 168126e598 libiberty: demangler crash with missing :? or fold expression component.
When constructing an :? or fold expression that requires a third
expression only the first and second were explicitly checked to
not be NULL. Since the third expression is also required in these
constructs it needs to be explicitly checked and rejected when missing.
Otherwise the demangler will crash once it tries to d_print the
NULL component. Added two examples to demangle-expected of strings
that would crash before this fix.

Found by American Fuzzy Lop (afl) fuzzer.

From-SVN: r242451
2016-11-15 19:31:59 +00:00
..
d-demangle-expected d-demangle.c (dlang_call_convention): Handle extern Objective-C function calling convention. 2016-01-27 01:07:26 +00:00
demangle-expected libiberty: demangler crash with missing :? or fold expression component. 2016-11-15 19:31:59 +00:00
demangler-fuzzer.c
Makefile.in
test-demangle.c
test-expandargv.c
test-pexecute.c Fix zero-length parameter bug in pex_run. 2016-09-19 10:02:56 +00:00
test-strtol.c