This is the mail archive of the
mailing list for the GCC project.
r242451 - in /trunk/libiberty: ChangeLog cp-dem...
- From: mark at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 15 Nov 2016 19:32:00 -0000
- Subject: r242451 - in /trunk/libiberty: ChangeLog cp-dem...
Date: Tue Nov 15 19:31:59 2016
New Revision: 242451
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.