Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] gnutls-3.8.8-build/gnutls-3.8.8/native_build/gl/sys/stat.h:54: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:23: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c: scope_hint: In function '_gnutls_fread_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:62:57: warning[-Wanalyzer-malloc-leak]: leak of '_gnutls_fread_file(rpl_fopen(filename, mode), flags, length)' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:18: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:190:1: note: in expansion of macro 'read_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:52:1: note: in expansion of macro 'fread_file' # 60| struct stat st; # 61| # 62|-> if (fstat (fileno (stream), &st) >= 0 && S_ISREG (st.st_mode)) # 63| { # 64| off_t pos = ftello (stream); Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:82:6: warning[-Wanalyzer-malloc-leak]: leak of '_gnutls_fread_file(rpl_fopen(filename, mode), flags, length)' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:190:1: note: in expansion of macro 'read_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/gl/read-file.c:52:1: note: in expansion of macro 'fread_file' # 80| } # 81| # 82|-> if (!(buf = malloc (alloc))) # 83| return NULL; /* errno is ENOMEM. */ # 84| Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] gnutls-3.8.8-build/gnutls-3.8.8/native_build/src/gl/sys/stat.h:54: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:23: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c: scope_hint: In function '_gnutls_fread_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:62:57: warning[-Wanalyzer-malloc-leak]: leak of '_gnutls_fread_file(rpl_fopen(filename, mode), flags, length)' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:18: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:190:1: note: in expansion of macro 'read_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:52:1: note: in expansion of macro 'fread_file' # 60| struct stat st; # 61| # 62|-> if (fstat (fileno (stream), &st) >= 0 && S_ISREG (st.st_mode)) # 63| { # 64| off_t pos = ftello (stream); Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:82:6: warning[-Wanalyzer-malloc-leak]: leak of '_gnutls_fread_file(rpl_fopen(filename, mode), flags, length)' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:190:1: note: in expansion of macro 'read_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:202:9: note: in expansion of macro 'fread_file' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/read-file.c:52:1: note: in expansion of macro 'fread_file' # 80| } # 81| # 82|-> if (!(buf = malloc (alloc))) # 83| return NULL; /* errno is ENOMEM. */ # 84| Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c: scope_hint: In function 'xmalloc' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:22: included_from: Included from here. gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c: scope_hint: In function 'xmalloc' # 43| xmalloc (size_t s) # 44| { # 45|-> return check_nonnull (malloc (s)); # 46| } # 47| Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c: scope_hint: In function 'xmalloc' # 43| xmalloc (size_t s) # 44| { # 45|-> return check_nonnull (malloc (s)); # 46| } # 47| Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c: scope_hint: In function 'xcalloc' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)' gnutls-3.8.8-build/gnutls-3.8.8/src/gl/xmalloc.c: scope_hint: In function 'xcalloc' # 296| xcalloc (size_t n, size_t s) # 297| { # 298|-> return check_nonnull (calloc (n, s)); # 299| } # 300|
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 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-97.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | gnutls-3.8.6-7.fc41 |
diffbase-store-results-to | /tmp/tmpigqlfzng/gnutls-3.8.6-7.fc41.tar.xz |
diffbase-time-created | 2024-11-13 00:08:37 |
diffbase-time-finished | 2024-11-13 00:21:59 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpigqlfzng/gnutls-3.8.6-7.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpigqlfzng/gnutls-3.8.6-7.fc41.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-97.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gnutls-3.8.8-1.fc42 |
store-results-to | /tmp/tmpfg2nl2ly/gnutls-3.8.8-1.fc42.tar.xz |
time-created | 2024-11-13 00:22:20 |
time-finished | 2024-11-13 00:32:58 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpfg2nl2ly/gnutls-3.8.8-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpfg2nl2ly/gnutls-3.8.8-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |