168126e598
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 |
||
---|---|---|
.. | ||
d-demangle-expected | ||
demangle-expected | ||
demangler-fuzzer.c | ||
Makefile.in | ||
test-demangle.c | ||
test-expandargv.c | ||
test-pexecute.c | ||
test-strtol.c |