[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] New: False positive with -Wanalyzer-malloc-leak

2024-06-11 Thread rickobranimir at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436 Bug ID: 115436 Summary: False positive with -Wanalyzer-malloc-leak Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ana