Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c: scope_hint: In function ‘ext2_write_host_file’ supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:510:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’ # 508| # 509| err = ext2fs_file_open2 (fs, ino, NULL, EXT2_FILE_WRITE, &file); # 510|-> if (err != 0) # 511| ext2_error_to_exception ("ext2fs_file_open2", err, filename); # 512| Error: GCC_ANALYZER_WARNING (CWE-775): [#def2] supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:514:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’ # 512| # 513| while ((r = read (fd, buf, sizeof buf)) > 0) { # 514|-> err = ext2fs_file_write (file, buf, r, &written); # 515| if (err != 0) # 516| ext2_error_to_exception ("ext2fs_file_open2", err, filename); Error: GCC_ANALYZER_WARNING (CWE-775): [#def3] supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:522:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’ # 520| } # 521| # 522|-> if (r == -1) # 523| unix_error (errno, (char *) "read", caml_copy_string (filename)); # 524| Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c: scope_hint: In function ‘ext2_copy_file’ supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:717:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dirname’ where non-null expected supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:33: included_from: Included from here. /usr/include/features.h:511: included_from: Included from here. /usr/include/bits/libc-header-start.h:33: included_from: Included from here. /usr/include/stdio.h:28: included_from: Included from here. supermin-5.3.5-build/supermin-5.3.5/src/ext2fs-c.c:21: included_from: Included from here. /usr/include/sys/stat.h:327:12: note: argument 1 of ‘lstat’ must be non-null # 715| */ # 716| struct stat stat1, stat2; # 717|-> if (lstat (dirname, &stat1) == 0 && S_ISLNK (stat1.st_mode) && # 718| stat (dirname, &stat2) == 0 && S_ISDIR (stat2.st_mode)) { # 719| char cmd[strlen (dirname) + 100];
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-248.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | supermin-5.3.5-2.fc42 |
store-results-to | /tmp/tmpp003_thn/supermin-5.3.5-2.fc42.tar.xz |
time-created | 2024-11-13 03:18:57 |
time-finished | 2024-11-13 03:20:28 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpp003_thn/supermin-5.3.5-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpp003_thn/supermin-5.3.5-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |