Error: COMPILER_WARNING (CWE-704): [#def1] libepoxy-1.5.10/test/egl_epoxy_api.c: scope_hint: In function ‘main’ libepoxy-1.5.10/test/egl_epoxy_api.c:132:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 132 | first_space = strstr(extensions, " "); # | ^ # 130| * touch test we just check if the first one is reported to be there. # 131| */ # 132|-> first_space = strstr(extensions, " "); # 133| if (first_space) { # 134| an_extension = strndup(extensions, first_space - extensions); Error: COMPILER_WARNING (CWE-704): [#def2] libepoxy-1.5.10/test/egl_epoxy_api.c:132:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 130| * touch test we just check if the first one is reported to be there. # 131| */ # 132|-> first_space = strstr(extensions, " "); # 133| if (first_space) { # 134| an_extension = strndup(extensions, first_space - extensions); Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] libepoxy-1.5.10/test/egl_epoxy_api.c:139:10: warning[-Wanalyzer-malloc-leak]: leak of ‘an_extension’ libepoxy-1.5.10/test/egl_epoxy_api.c:133:8: branch_false: following ‘false’ branch (when ‘first_space’ is NULL)... libepoxy-1.5.10/test/egl_epoxy_api.c:136:24: branch_false: ...to here libepoxy-1.5.10/test/egl_epoxy_api.c:136:24: acquire_memory: allocated here libepoxy-1.5.10/test/egl_epoxy_api.c:139:10: throw: if ‘epoxy_extension_in_string’ throws an exception... libepoxy-1.5.10/test/egl_epoxy_api.c:139:10: danger: ‘an_extension’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3) # 137| } # 138| # 139|-> if (!epoxy_extension_in_string(extensions, an_extension)) # 140| errx(1, "Implementation reported absence of %s", an_extension); # 141| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] libepoxy-1.5.10/test/egl_epoxy_api.c:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘an_extension’ libepoxy-1.5.10/test/egl_epoxy_api.c:133:8: branch_false: following ‘false’ branch (when ‘first_space’ is NULL)... libepoxy-1.5.10/test/egl_epoxy_api.c:136:24: branch_false: ...to here libepoxy-1.5.10/test/egl_epoxy_api.c:136:24: acquire_memory: allocated here libepoxy-1.5.10/test/egl_epoxy_api.c:139:8: branch_false: following ‘false’ branch... libepoxy-1.5.10/test/egl_epoxy_api.c:140:9: branch_false: ...to here libepoxy-1.5.10/test/egl_epoxy_api.c:140:9: throw: if ‘errx’ throws an exception... libepoxy-1.5.10/test/egl_epoxy_api.c:140:9: danger: ‘an_extension’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3) # 138| # 139| if (!epoxy_extension_in_string(extensions, an_extension)) # 140|-> errx(1, "Implementation reported absence of %s", an_extension); # 141| # 142| free(an_extension); Error: COMPILER_WARNING (CWE-704): [#def5] libepoxy-1.5.10/test/egl_has_extension_nocontext.c: scope_hint: In function ‘main’ libepoxy-1.5.10/test/egl_has_extension_nocontext.c:59:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 59 | first_space = strstr(extensions, " "); # | ^ # 57| * touch test we just check if the first one is reported to be there. # 58| */ # 59|-> first_space = strstr(extensions, " "); # 60| if (first_space) { # 61| an_extension = strndup(extensions, first_space - extensions); Error: COMPILER_WARNING (CWE-704): [#def6] libepoxy-1.5.10/test/egl_has_extension_nocontext.c:59:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 57| * touch test we just check if the first one is reported to be there. # 58| */ # 59|-> first_space = strstr(extensions, " "); # 60| if (first_space) { # 61| an_extension = strndup(extensions, first_space - extensions); Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] libepoxy-1.5.10/test/egl_has_extension_nocontext.c:66:10: warning[-Wanalyzer-malloc-leak]: leak of ‘an_extension’ libepoxy-1.5.10/test/egl_has_extension_nocontext.c:60:8: branch_false: following ‘false’ branch (when ‘first_space’ is NULL)... libepoxy-1.5.10/test/egl_has_extension_nocontext.c:63:24: branch_false: ...to here libepoxy-1.5.10/test/egl_has_extension_nocontext.c:63:24: acquire_memory: allocated here libepoxy-1.5.10/test/egl_has_extension_nocontext.c:66:10: throw: if ‘epoxy_has_egl_extension’ throws an exception... libepoxy-1.5.10/test/egl_has_extension_nocontext.c:66:10: danger: ‘an_extension’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3) # 64| } # 65| # 66|-> if (!epoxy_has_egl_extension(dpy, an_extension)) # 67| errx(1, "Implementation reported absence of %s", an_extension); # 68| Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] libepoxy-1.5.10/test/egl_has_extension_nocontext.c:67:9: warning[-Wanalyzer-malloc-leak]: leak of ‘an_extension’ libepoxy-1.5.10/test/egl_has_extension_nocontext.c:60:8: branch_false: following ‘false’ branch (when ‘first_space’ is NULL)... libepoxy-1.5.10/test/egl_has_extension_nocontext.c:63:24: branch_false: ...to here libepoxy-1.5.10/test/egl_has_extension_nocontext.c:63:24: acquire_memory: allocated here libepoxy-1.5.10/test/egl_has_extension_nocontext.c:66:8: branch_false: following ‘false’ branch... libepoxy-1.5.10/test/egl_has_extension_nocontext.c:67:9: branch_false: ...to here libepoxy-1.5.10/test/egl_has_extension_nocontext.c:67:9: throw: if ‘errx’ throws an exception... libepoxy-1.5.10/test/egl_has_extension_nocontext.c:67:9: danger: ‘an_extension’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3) # 65| # 66| if (!epoxy_has_egl_extension(dpy, an_extension)) # 67|-> errx(1, "Implementation reported absence of %s", an_extension); # 68| # 69| free(an_extension);
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-58.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libepoxy-1.5.10-11.fc44 |
| store-results-to | /tmp/tmpir81075c/libepoxy-1.5.10-11.fc44.tar.xz |
| time-created | 2026-01-08 18:41:38 |
| time-finished | 2026-01-08 18:43:29 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpir81075c/libepoxy-1.5.10-11.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpir81075c/libepoxy-1.5.10-11.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |