Error: CLANG_WARNING: [#def1] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:1620:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'data' # 1618| unlock_status = psa_unlock_key_slot(slot); # 1619| # 1620|-> LOCAL_OUTPUT_FREE(data_external, data); # 1621| return (status == PSA_SUCCESS) ? unlock_status : status; # 1622| } Error: CLANG_WARNING: [#def2] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:2368:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'hash' # 2366| exit: # 2367| #endif # 2368|-> LOCAL_OUTPUT_FREE(hash_external, hash); # 2369| return status; # 2370| } Error: CLANG_WARNING: [#def3] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:2859:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'mac' # 2857| #endif # 2858| LOCAL_INPUT_FREE(input_external, input); # 2859|-> LOCAL_OUTPUT_FREE(mac_external, mac); # 2860| # 2861| return status; Error: CLANG_WARNING: [#def4] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:3117:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'signature' # 3115| #endif # 3116| LOCAL_INPUT_FREE(input_external, input); # 3117|-> LOCAL_OUTPUT_FREE(signature_external, signature); # 3118| return status; # 3119| } Error: CLANG_WARNING: [#def5] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:3249:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'signature' # 3247| #endif # 3248| LOCAL_INPUT_FREE(hash_external, hash); # 3249|-> LOCAL_OUTPUT_FREE(signature_external, signature); # 3250| # 3251| return status; Error: CLANG_WARNING: [#def6] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:3450:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'output' # 3448| LOCAL_INPUT_FREE(input_external, input); # 3449| LOCAL_INPUT_FREE(salt_external, salt); # 3450|-> LOCAL_OUTPUT_FREE(output_external, output); # 3451| # 3452| return (status == PSA_SUCCESS) ? unlock_status : status; Error: CLANG_WARNING: [#def7] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:3566:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'output' # 3564| LOCAL_INPUT_FREE(input_external, input); # 3565| LOCAL_INPUT_FREE(salt_external, salt); # 3566|-> LOCAL_OUTPUT_FREE(output_external, output); # 3567| # 3568| return (status == PSA_SUCCESS) ? unlock_status : status; Error: GCC_ANALYZER_WARNING (CWE-688): [#def8] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c: scope_hint: In function ‘psa_tls12_prf_psk_to_ms_set_key’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5111:5: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5228:5: note: in expansion of macro ‘LOCAL_INPUT_DECLARE’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5230:5: note: in expansion of macro ‘LOCAL_INPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5230:5: note: in expansion of macro ‘LOCAL_INPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5230:5: note: in expansion of macro ‘LOCAL_INPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5230:5: note: in expansion of macro ‘LOCAL_INPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5230:5: note: in expansion of macro ‘LOCAL_INPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/include/psa/crypto.h:56: included_from: Included from here. mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:17: included_from: Included from here. mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5154:24: note: in expansion of macro ‘PSA_SUCCESS’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5188:9: note: in expansion of macro ‘PSA_ALG_IS_HKDF’ <built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null # 5109| *cur++ = pms[0]; # 5110| *cur++ = pms[1]; # 5111|-> memcpy(cur, data, data_length); # 5112| cur += data_length; # 5113| Error: CLANG_WARNING: [#def9] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5628:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'output' # 5626| exit: # 5627| #endif # 5628|-> LOCAL_OUTPUT_FREE(output_external, output); # 5629| return status; # 5630| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c: scope_hint: In function ‘psa_generate_random’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5629:12: warning[-Wanalyzer-malloc-leak]: leak of ‘output’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5621:5: note: in expansion of macro ‘LOCAL_OUTPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:40: included_from: Included from here. mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:6112:28: note: in expansion of macro ‘mbedtls_calloc’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:6112:28: note: in expansion of macro ‘mbedtls_calloc’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5621:5: note: in expansion of macro ‘LOCAL_OUTPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5621:5: note: in expansion of macro ‘LOCAL_OUTPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5621:5: note: in expansion of macro ‘LOCAL_OUTPUT_ALLOC’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:3574:5: note: in expansion of macro ‘GUARD_MODULE_INITIALIZED’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5628:5: note: in expansion of macro ‘LOCAL_OUTPUT_FREE’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5628:5: note: in expansion of macro ‘LOCAL_OUTPUT_FREE’ mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto.c:5628:5: note: in expansion of macro ‘LOCAL_OUTPUT_FREE’ # 5627| #endif # 5628| LOCAL_OUTPUT_FREE(output_external, output); # 5629|-> return status; # 5630| } # 5631| Error: CPPCHECK_WARNING: [#def11] mbedtls-2.28.8-build/mbedtls-2.28.8/library/psa_crypto_cipher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-171.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | mbedtls-2.28.7-1.fc40 |
diffbase-store-results-to | /tmp/tmp74ci3d6u/mbedtls-2.28.7-1.fc40.tar.xz |
diffbase-time-created | 2024-07-03 16:14:15 |
diffbase-time-finished | 2024-07-03 16:17:14 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp74ci3d6u/mbedtls-2.28.7-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp74ci3d6u/mbedtls-2.28.7-1.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-171.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | mbedtls-2.28.8-1.fc41 |
store-results-to | /tmp/tmp43i49wiv/mbedtls-2.28.8-1.fc41.tar.xz |
time-created | 2024-07-03 16:17:40 |
time-finished | 2024-07-03 16:20:14 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp43i49wiv/mbedtls-2.28.8-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp43i49wiv/mbedtls-2.28.8-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |