[committed] avoid invalid redeclarations (PR 97861)

Martin Sebor msebor@gmail.com
Fri Nov 20 21:42:10 GMT 2020


When checking for mismatches between the array forms of arguments
between the current and the new declaration of a function
warn_parm_array_mismatch() assumes that the new declaration is
valid and compatible with the current one.  When that's not so
the function crashes with a null pointer dereference.  In r11-5213
I have committed the attached fix to avoid this unsafe assumption.

Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-97861.diff
Type: text/x-patch
Size: 2185 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201120/a637f322/attachment-0001.bin>


More information about the Gcc-patches mailing list