[Bug analyzer/115436] False positive with -Wanalyzer-malloc-leak

2024-06-12 Thread rickobranimir at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436 --- Comment #2 from Branimir Ričko --- ``` I think there *might* be a true positive here for the case where s->cap == 0x8000, so that s->cap * 2 becomes 0 due to overflow; should my_str_realloc be checking for s->str being null for the "need

[Bug analyzer/115436] False positive with -Wanalyzer-malloc-leak

2024-06-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|