Error: COMPILER_WARNING (CWE-563): [#def1] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hdf/dataobject.c: scope_hint: In function ‘readOHDRHeaderMessageFilterPipelineV1’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/hdf/dataobject.c:625:41: warning[-Wunused-but-set-variable]: variable ‘flags’ set but not used # 625 | uint16_t filter_identification_value, flags, number_client_data_values, # | ^~~~~ # 623| uint8_t filters) { # 624| int i, j; # 625|-> uint16_t filter_identification_value, flags, number_client_data_values, # 626| namelength; # 627| Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/lookup.c: scope_hint: In function ‘mysofa_lookup_init’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/lookup.c:46:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origin’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 44| lookup->radius_max = FLT_MIN; # 45| for (i = 0; i < hrtf->M; i++) { # 46|-> memcpy(origin, hrtf->SourcePosition.values + i * hrtf->C, # 47| sizeof(float) * hrtf->C); # 48| convertCartesianToSpherical(origin, hrtf->C); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/minphase.c: scope_hint: In function ‘trunk’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/minphase.c:44:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘start’ # 42| } # 43| } # 44|-> *start = s; # 45| *end = e + 1; # 46| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/minphase.c:45:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘end’ # 43| } # 44| *start = s; # 45|-> *end = e + 1; # 46| } # 47| Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/minphase.c: scope_hint: In function ‘mysofa_minphase’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/minphase.c:92:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 90| if (start[i] + max > hrtf->N) # 91| start[i] = hrtf->N - max; # 92|-> hrtf->DataDelay.values[i] = d[i % 1] + (start[i] / samplerate); # 93| memmove(hrtf->DataIR.values + i * max, # 94| hrtf->DataIR.values + i * hrtf->N + start[i], max * sizeof(float)); Error: GCC_ANALYZER_WARNING (CWE-688): [#def6] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/neighbors.c: scope_hint: In function ‘mysofa_neighborhood_init_withstepdefine’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/neighbors.c:55:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origin’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 53| # 54| for (i = 0; i < hrtf->M; i++) { # 55|-> memcpy(origin, hrtf->SourcePosition.values + i * hrtf->C, # 56| sizeof(float) * hrtf->C); # 57| convertCartesianToSpherical(origin, hrtf->C); Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/neighbors.c:62:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test’ # 60| phi = angleStep; # 61| do { # 62|-> test[0] = origin[0] + phi; # 63| test[1] = origin[1]; # 64| test[2] = origin[2]; Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/neighbors.c:92:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test’ # 90| theta = angleStep; # 91| do { # 92|-> test[0] = origin[0]; # 93| test[1] = origin[1] + theta; # 94| test[2] = origin[2]; Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] libmysofa-1.3.3-build/libmysofa-1.3.3/src/hrtf/neighbors.c:122:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test’ # 120| radius = radiusStep; # 121| do { # 122|-> test[0] = origin[0]; # 123| test[1] = origin[1]; # 124| radius2 = test[2] = origin[2] + radius; Error: GCC_ANALYZER_WARNING (CWE-688): [#def10] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c: scope_hint: In function ‘test_cache’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:18:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy1’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 16| struct MYSOFA_EASY *easy1 = malloc(sizeof(struct MYSOFA_EASY)); # 17| struct MYSOFA_EASY *easy2 = malloc(sizeof(struct MYSOFA_EASY)); # 18|-> bzero(easy1, sizeof(struct MYSOFA_EASY)); # 19| bzero(easy2, sizeof(struct MYSOFA_EASY)); # 20| Error: GCC_ANALYZER_WARNING (CWE-688): [#def11] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:19:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy2’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 17| struct MYSOFA_EASY *easy2 = malloc(sizeof(struct MYSOFA_EASY)); # 18| bzero(easy1, sizeof(struct MYSOFA_EASY)); # 19|-> bzero(easy2, sizeof(struct MYSOFA_EASY)); # 20| # 21| mysofa_close(easy2); /* must pass without segfail */ Error: GCC_ANALYZER_WARNING (CWE-688): [#def12] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:39:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy1’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 37| # 38| easy1 = malloc(sizeof(struct MYSOFA_EASY)); # 39|-> bzero(easy1, sizeof(struct MYSOFA_EASY)); # 40| # 41| CU_ASSERT(mysofa_cache_store(easy1, filename1, sr1) == easy1); /* add again */ Error: GCC_ANALYZER_WARNING (CWE-688): [#def13] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:45:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy2’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 43| easy2 = malloc( # 44| sizeof(struct MYSOFA_EASY)); /* easy2 has been freed automatically */ # 45|-> bzero(easy2, sizeof(struct MYSOFA_EASY)); # 46| # 47| CU_ASSERT(mysofa_cache_store(easy2, filename1, sr1) == Error: GCC_ANALYZER_WARNING (CWE-688): [#def14] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:52:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy2’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 50| easy2 = malloc( # 51| sizeof(struct MYSOFA_EASY)); /* easy2 has been freed automatically */ # 52|-> bzero(easy2, sizeof(struct MYSOFA_EASY)); # 53| # 54| CU_ASSERT(mysofa_cache_store(easy2, filename1, sr2) == Error: GCC_ANALYZER_WARNING (CWE-688): [#def15] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/cache.c:63:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘easy2’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 61| # 62| easy2 = malloc(sizeof(struct MYSOFA_EASY)); # 63|-> bzero(easy2, sizeof(struct MYSOFA_EASY)); # 64| # 65| CU_ASSERT(mysofa_cache_store(easy2, filename2, sr2) == Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/easy.c: scope_hint: In function ‘test_easy’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/easy.c:103:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘coordinates’ # 101| r = 1; # 102| for (phi = 0; phi < r; phi++) { # 103|-> coordinates[count * 3 + 0] = phi * (360. / r); # 104| coordinates[count * 3 + 1] = theta; # 105| coordinates[count * 3 + 2] = 1; Error: GCC_ANALYZER_WARNING (CWE-476): [#def17] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/multithread.c: scope_hint: In function ‘thread’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/multithread.c:55:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘coordinates’ # 53| r = 1; # 54| for (phi = 0; phi < r; phi++) { # 55|-> coordinates[count * 3 + 0] = phi * (360. / r); # 56| coordinates[count * 3 + 1] = theta; # 57| coordinates[count * 3 + 2] = 1; Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/resample.c: scope_hint: In function ‘test_resample’ libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/resample.c:25:5: warning[-Wanalyzer-malloc-leak]: leak of ‘backupIr’ /usr/include/CUnit/Basic.h:36: included_from: Included from here. libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/tests.h:11: included_from: Included from here. libmysofa-1.3.3-build/libmysofa-1.3.3/src/tests/resample.c:3: included_from: Included from here. # 23| if (!hrtf) { # 24| CU_FAIL_FATAL("Error reading file."); # 25|-> return; # 26| } # 27|
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-113.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libmysofa-1.3.3-1.fc42 |
store-results-to | /tmp/tmpb6_9g_24/libmysofa-1.3.3-1.fc42.tar.xz |
time-created | 2024-11-13 01:34:02 |
time-finished | 2024-11-13 01:35:41 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpb6_9g_24/libmysofa-1.3.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpb6_9g_24/libmysofa-1.3.3-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |