Error: CPPCHECK_WARNING (CWE-562): [#def1] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/gettext.h:247: error[returnDanglingLifetime]: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. # 245| #endif # 246| if (found_translation) # 247|-> return translation; # 248| } # 249| return msgid; Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc' # 58| imalloc (idx_t s) # 59| { # 60|-> return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem (); # 61| } # 62| Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc' # 58| imalloc (idx_t s) # 59| { # 60|-> return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem (); # 61| } # 62| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/ialloc.h:106:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc' # 104| s = 0; # 105| } # 106|-> return calloc (n, s); # 107| } # 108| Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:22: included_from: Included from here. libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/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] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/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] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/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| Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string, strlen(string) + 1)' libpipeline-1.5.8-build/libpipeline-1.5.8/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup' # 312| xmemdup (void const *p, size_t s) # 313| { # 314|-> return memcpy (xmalloc (s), p, s); # 315| } # 316| Error: GCC_ANALYZER_WARNING (CWE-775): [#def9] libpipeline-1.5.8-build/libpipeline-1.5.8/lib/pipeline.c: scope_hint: In function 'pipeline_start' libpipeline-1.5.8-build/libpipeline-1.5.8/lib/pipeline.c:1570:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(last_input, 0)' libpipeline-1.5.8-build/libpipeline-1.5.8/lib/pipeline.c:29: included_from: Included from here. # 1568| /* input, reading side */ # 1569| if (last_input != -1) { # 1570|-> if (dup2 (last_input, 0) < 0) # 1571| fatal (errno, "dup2 failed"); # 1572| if (close (last_input) < 0) Error: GCC_ANALYZER_WARNING (CWE-775): [#def10] libpipeline-1.5.8-build/libpipeline-1.5.8/lib/pipeline.c:1578:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(output_write, 1)' # 1576| /* output, writing side */ # 1577| if (output_write != -1) { # 1578|-> if (dup2 (output_write, 1) < 0) # 1579| fatal (errno, "dup2 failed"); # 1580| if (close (output_write) < 0) Error: GCC_ANALYZER_WARNING (CWE-775): [#def11] libpipeline-1.5.8-build/libpipeline-1.5.8/lib/pipeline.c:1643:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'last_input' # 1641| if (p->ncommands == 0) # 1642| p->outfd = last_input; # 1643|-> } # 1644| # 1645| int pipeline_wait_all (pipeline *p, int **statuses, int *n_statuses)
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-171.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libpipeline-1.5.8-1.fc42 |
store-results-to | /tmp/tmpgajrfbvm/libpipeline-1.5.8-1.fc42.tar.xz |
time-created | 2024-11-13 01:35:42 |
time-finished | 2024-11-13 01:37:16 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpgajrfbvm/libpipeline-1.5.8-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpgajrfbvm/libpipeline-1.5.8-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |