Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] minizip-ng-4.0.9/mz_os_posix.c:69:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", from_encoding)’ minizip-ng-4.0.9/mz_os_posix.c:52:8: branch_false: following ‘false’ branch... branch_false: ...to here minizip-ng-4.0.9/mz_os_posix.c:68:10: acquire_memory: allocated here minizip-ng-4.0.9/mz_os_posix.c:69:8: danger: ‘iconv_open("UTF-8", from_encoding)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 67| # 68| cd = iconv_open("UTF-8", from_encoding); # 69|-> if (cd == (iconv_t)-1) # 70| return NULL; # 71| Error: COMPILER_WARNING: [#def2] minizip-ng-4.0.9/mz_zip.c: scope_hint: In function ‘mz_zip_set_comment’ minizip-ng-4.0.9/mz_zip.c:1568:5: warning[-Wstringop-truncation]: ‘__strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length # 1568 | strncpy(zip->comment, comment, comment_size); # | ^ minizip-ng-4.0.9/mz_zip.c:1562:29: note: length computed here # 1562 | comment_size = (int32_t)strlen(comment); # | ^~~~~~~~~~~~~~~ # 1566| if (!zip->comment) # 1567| return MZ_MEM_ERROR; # 1568|-> strncpy(zip->comment, comment, comment_size); # 1569| return MZ_OK; # 1570| }
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
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-36.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | minizip-ng-4.0.9-1.fc43 |
store-results-to | /tmp/tmpqhpdiax4/minizip-ng-4.0.9-1.fc43.tar.xz |
time-created | 2025-04-25 14:28:17 |
time-finished | 2025-04-25 14:29:42 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpqhpdiax4/minizip-ng-4.0.9-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqhpdiax4/minizip-ng-4.0.9-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |