[Bug analyzer/113333] analyzer: False positives with calloc()

2024-01-16 Thread buczek at molgen dot mpg.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 --- Comment #4 from Donald Buczek --- Great, thank you! I wonder, if the related missed optimization opportunity should also be reported. #include int f(void) { char **vec = calloc(1, sizeof(char *)); if (vec) { // *vec =

[Bug analyzer/113333] New: analyzer: False positives with calloc()

2024-01-11 Thread buczek at molgen dot mpg.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 Bug ID: 11 Summary: analyzer: False positives with calloc() Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug analyzer/113329] New: analyzer: False positive analyzer-fd-use-without-check with dup2()

2024-01-11 Thread buczek at molgen dot mpg.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113329 Bug ID: 113329 Summary: analyzer: False positive analyzer-fd-use-without-check with dup2() Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug analyzer/109839] -Wanalyzer-fd-leak false positive with routine dup2

2024-01-11 Thread buczek at molgen dot mpg.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109839 Donald Buczek changed: What|Removed |Added CC||buczek at molgen dot mpg.de ---