[Bug analyzer/107225] FP with -Wanalyzer-mismatching-deallocation

2022-10-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107225 --- Comment #2 from David Malcolm --- Thanks for filing this bug. As far as I can tell, the aliasing implementation gets confused at: 1313 | x_hdrs[num_x_hdrs++] = strdup(line); | ~^~ f

[Bug analyzer/107225] FP with -Wanalyzer-mismatching-deallocation

2022-10-11 Thread urs at akk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107225 --- Comment #1 from urs at akk dot org --- Created attachment 53694 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53694&action=edit reduced test case for FP with -fanalyzer (-Wanalyzer-mismatching-deallocation, -Wanalyzer-file-leak)