wavpack-5.8.1-1.fc43
List of Findings
Error: CPPCHECK_WARNING (CWE-476): [#def1]
wavpack-5.8.1/cli/caff.c:338: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: channel_reorder
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
wavpack-5.8.1/cli/caff.c:356:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘channel_reorder’
wavpack-5.8.1/cli/caff.c:159:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:160:9: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:159:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:164:16: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:172:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:182:13: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:186:20: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:278:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:281:17: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:281:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:287:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:293:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:17: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:298:24: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:308:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:321:28: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:322:49: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:321:29: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:328:28: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:328:28: branch_false: following ‘false’ branch (when ‘num_descriptions <= 255’)...
wavpack-5.8.1/cli/caff.c:337:43: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:337:43: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/caff.c:343:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:344:68: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_true: following ‘true’ branch (when ‘label != 19’)...
branch_true: ...to here
wavpack-5.8.1/cli/caff.c:353:41: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:354:50: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:354:36: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:355:37: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:356:37: danger: ‘channel_reorder + (long unsigned int)i’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
wavpack-5.8.1/cli/caff.c:363:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘channel_reorder’
wavpack-5.8.1/cli/caff.c:159:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:160:9: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:159:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:164:16: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:172:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:182:13: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:186:20: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:278:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:281:17: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:281:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:287:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:293:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:17: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:298:24: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:308:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:321:28: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:322:49: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:321:29: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:328:28: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:328:28: branch_false: following ‘false’ branch (when ‘num_descriptions <= 255’)...
wavpack-5.8.1/cli/caff.c:337:43: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:337:43: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/caff.c:343:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:344:68: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_true: following ‘true’ branch (when ‘label != 19’)...
branch_true: ...to here
wavpack-5.8.1/cli/caff.c:353:41: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:354:50: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:354:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:353:63: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_false: following ‘false’ branch (when ‘label == 19’)...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:362:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:363:49: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:363:33: danger: ‘channel_reorder + (sizetype)i’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
wavpack-5.8.1/cli/caff.c:367:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘channel_identities’
wavpack-5.8.1/cli/caff.c:159:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:160:9: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:159:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:164:16: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:172:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:182:13: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:186:20: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:278:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:281:17: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:281:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:287:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:293:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:17: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:298:24: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:308:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:321:28: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:322:49: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:321:29: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:328:28: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:328:28: branch_false: following ‘false’ branch (when ‘num_descriptions <= 255’)...
wavpack-5.8.1/cli/caff.c:337:43: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:339:46: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/caff.c:343:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:344:68: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_true: following ‘true’ branch (when ‘label != 19’)...
branch_true: ...to here
wavpack-5.8.1/cli/caff.c:353:41: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:354:50: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:354:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:353:63: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_false: following ‘false’ branch (when ‘label == 19’)...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:362:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:363:49: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:363:32: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:364:64: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:366:36: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:367:57: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:367:37: danger: ‘channel_identities + (sizetype)idents’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
wavpack-5.8.1/cli/caff.c:369:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘channel_identities’
wavpack-5.8.1/cli/caff.c:159:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:160:9: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:159:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:164:16: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:172:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:182:13: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:186:20: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:278:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:281:17: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:281:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:287:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:293:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:17: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:298:24: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:308:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:321:28: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:322:49: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:321:29: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:328:28: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:328:28: branch_false: following ‘false’ branch (when ‘num_descriptions <= 255’)...
wavpack-5.8.1/cli/caff.c:337:43: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:339:46: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/caff.c:343:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:344:68: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_true: following ‘true’ branch (when ‘label != 19’)...
branch_true: ...to here
wavpack-5.8.1/cli/caff.c:353:41: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:354:50: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:354:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:353:63: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_false: following ‘false’ branch (when ‘label == 19’)...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:362:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:363:49: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:363:32: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:364:64: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:366:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:368:42: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:368:41: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:369:37: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:369:37: danger: ‘channel_identities + (sizetype)idents’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
wavpack-5.8.1/cli/caff.c:372:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘channel_identities’
wavpack-5.8.1/cli/caff.c:159:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:160:9: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:159:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:164:16: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:172:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:182:13: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:181:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:186:20: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:278:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:281:17: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:281:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:287:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:293:17: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:292:17: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:298:24: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:308:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:321:28: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:322:49: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:321:29: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:328:28: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:328:28: branch_false: following ‘false’ branch (when ‘num_descriptions <= 255’)...
wavpack-5.8.1/cli/caff.c:337:43: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:339:46: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/caff.c:343:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:344:68: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_true: following ‘true’ branch (when ‘label != 19’)...
branch_true: ...to here
wavpack-5.8.1/cli/caff.c:353:41: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:354:50: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:354:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:353:63: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:352:41: branch_false: following ‘false’ branch (when ‘label == 19’)...
branch_false: ...to here
wavpack-5.8.1/cli/caff.c:362:37: branch_true: following ‘true’ branch (when ‘i < num_descriptions’)...
wavpack-5.8.1/cli/caff.c:363:49: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:363:32: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/caff.c:364:64: branch_true: ...to here
wavpack-5.8.1/cli/caff.c:366:36: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:368:42: branch_false: ...to here
wavpack-5.8.1/cli/caff.c:368:41: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/caff.c:372:37: danger: ‘channel_identities + (sizetype)idents’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/28)
Error: CPPCHECK_WARNING (CWE-476): [#def7]
wavpack-5.8.1/cli/caff_write.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order
Error: CPPCHECK_WARNING (CWE-476): [#def8]
wavpack-5.8.1/cli/import_id3.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame_body
Error: CPPCHECK_WARNING (CWE-476): [#def9]
wavpack-5.8.1/cli/import_id3.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: utf8_string
Error: CPPCHECK_WARNING (CWE-476): [#def10]
wavpack-5.8.1/cli/import_id3.c:348: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: binary_tag_image
Error: CPPCHECK_WARNING (CWE-476): [#def11]
wavpack-5.8.1/cli/import_id3.c:349: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: binary_tag_image
Error: CPPCHECK_WARNING (CWE-682): [#def12]
wavpack-5.8.1/cli/import_id3.c:350: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def13]
wavpack-5.8.1/cli/import_id3.c:466: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def14]
wavpack-5.8.1/cli/import_id3.c:521: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-131): [#def15]
wavpack-5.8.1/cli/import_id3.c:557:23: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
wavpack-5.8.1/cli/import_id3.c:544:14: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:545:40: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:557:23: danger: allocated ‘src_length + 2’ bytes and assigned to ‘uint16_t *’ {{aka ‘short unsigned int *’}} here; ‘sizeof (uint16_t {{aka short unsigned int}})’ is ‘2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
wavpack-5.8.1/cli/import_id3.c:567:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wide_string’
wavpack-5.8.1/cli/import_id3.c:544:14: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:545:40: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:557:23: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/import_id3.c:559:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:562:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:563:26: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:567:20: branch_true: following ‘true’ branch (when ‘wchar != 65279’)...
wavpack-5.8.1/cli/import_id3.c:567:57: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:567:43: danger: ‘wide_string + (long unsigned int)i * 2’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
wavpack-5.8.1/cli/import_id3.c:572:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wide_string’
wavpack-5.8.1/cli/import_id3.c:544:14: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:545:40: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:557:23: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/import_id3.c:559:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:562:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:563:26: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:567:20: branch_false: following ‘false’ branch (when ‘wchar == 65279’)...
branch_false: ...to here
wavpack-5.8.1/cli/import_id3.c:562:20: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/import_id3.c:571:16: branch_false: ...to here
wavpack-5.8.1/cli/import_id3.c:571:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/import_id3.c:572:29: branch_true: ...to here
wavpack-5.8.1/cli/import_id3.c:572:17: danger: ‘wide_string + (long unsigned int)i * 2’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def18]
wavpack-5.8.1/cli/import_id3.c:653: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
wavpack-5.8.1/cli/import_id3.c:658:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", "ISO-8859-1")’
wavpack-5.8.1/cli/import_id3.c:656:17: acquire_memory: allocated here
wavpack-5.8.1/cli/import_id3.c:658:8: danger: ‘iconv_open("UTF-8", "ISO-8859-1")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def20]
wavpack-5.8.1/cli/import_id3.c:670: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-401): [#def21]
wavpack-5.8.1/cli/wavpack.c:394: error[memleakOnRealloc]: Common realloc mistake: 'argv_fn' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def22]
wavpack-5.8.1/cli/wavpack.c:891: error[memleakOnRealloc]: Common realloc mistake: 'tag_items' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def23]
wavpack-5.8.1/cli/wavpack.c:946: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def24]
wavpack-5.8.1/cli/wavpack.c:1203: error[memleakOnRealloc]: Common realloc mistake: 'listbuff' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def25]
wavpack-5.8.1/cli/wavpack.c:1231: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def26]
wavpack-5.8.1/cli/wavpack.c:1630: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchname
Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
wavpack-5.8.1/cli/wavpack.c:1836:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘outfilename_temp’ where non-null expected
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1756:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1791:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:1830:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1830:28: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:1832:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1833:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1836:13: danger: argument 1 (‘outfilename_temp’) from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def28]
wavpack-5.8.1/cli/wavpack.c:1865:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘out2filename_temp’ where non-null expected
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1791:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:1830:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1832:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1833:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1833:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:1847:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:1850:21: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1855:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1864:16: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1864:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1865:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1865:17: danger: argument 1 (‘out2filename_temp’) from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
wavpack-5.8.1/cli/wavpack.c:2021:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1791:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:1830:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1832:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1833:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1839:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:1842:29: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1864:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1865:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1894:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:1895:9: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1926:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1931:11: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1987:13: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2014:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2015:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2017:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2018:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2018:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2020:25: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2021:35: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2021:17: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
wavpack-5.8.1/cli/wavpack.c:2048:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1791:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:1830:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1832:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1833:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1839:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:1842:29: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1864:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1865:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1870:20: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1894:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:1895:9: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1926:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1931:11: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1931:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1987:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1987:13: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2014:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2032:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2032:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2044:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2045:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2045:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2047:25: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2048:35: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2048:17: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
wavpack-5.8.1/cli/wavpack.c:2054:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1681:11: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1791:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1791:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1826:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:1830:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1832:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1833:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1839:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:1842:29: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1864:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:1865:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1870:20: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1894:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:1895:9: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:1926:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1931:11: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1931:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:1987:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:1987:13: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2014:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2032:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2032:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2044:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2045:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2045:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2047:25: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2050:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2052:25: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2053:29: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2054:43: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2054:25: danger: ‘new_channel_order + (sizetype)j’ could be NULL: unchecked value from [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
Error: CPPCHECK_WARNING (CWE-401): [#def32]
wavpack-5.8.1/cli/wavpack.c:2133: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
wavpack-5.8.1/cli/wavpack.c:2626:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sample_buffer’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2618:16: branch_true: following ‘true’ branch (when ‘quantize_bit_mask != 0’)...
wavpack-5.8.1/cli/wavpack.c:2619:51: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2620:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2621:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2621:24: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2622:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2625:37: branch_true: following ‘true’ branch (when ‘x < l’)...
wavpack-5.8.1/cli/wavpack.c:2626:46: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2626:33: danger: ‘sample_buffer + (long unsigned int)x * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
wavpack-5.8.1/cli/wavpack.c:2630:46: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sample_buffer’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2618:16: branch_true: following ‘true’ branch (when ‘quantize_bit_mask != 0’)...
wavpack-5.8.1/cli/wavpack.c:2619:51: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2620:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2621:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2621:24: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2630:33: branch_true: following ‘true’ branch (when ‘x < l’)...
wavpack-5.8.1/cli/wavpack.c:2630:46: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2630:46: danger: ‘sample_buffer + (long unsigned int)x * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
wavpack-5.8.1/cli/wavpack.c:2634:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sample_buffer’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2618:16: branch_true: following ‘true’ branch (when ‘quantize_bit_mask != 0’)...
wavpack-5.8.1/cli/wavpack.c:2619:51: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2620:20: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2633:33: branch_true: following ‘true’ branch (when ‘x < l’)...
wavpack-5.8.1/cli/wavpack.c:2634:65: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2634:37: danger: ‘sample_buffer + (long unsigned int)x * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
wavpack-5.8.1/cli/wavpack.c:2826:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sptr’
wavpack-5.8.1/cli/wavpack.c:2765:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2768:12: branch_true: following ‘true’ branch (when ‘samples_remaining != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2772:29: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2773:37: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2783:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2784:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2784:20: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2788:25: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2788:25: branch_false: following ‘false’ branch (when ‘samples_remaining > 4095’)...
wavpack-5.8.1/cli/wavpack.c:2796:31: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2810:16: branch_false: following ‘false’ branch (when ‘md5_digest_source’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:2813:16: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2813:16: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2817:20: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2817:20: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2820:38: branch_true: following ‘true’ branch (when ‘sindex != 4096’)...
wavpack-5.8.1/cli/wavpack.c:2821:47: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2824:49: branch_true: following ‘true’ branch (when ‘cc != 0’)...
wavpack-5.8.1/cli/wavpack.c:2825:32: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2825:32: branch_true: following ‘true’ branch (when ‘sample_count > sindex’)...
wavpack-5.8.1/cli/wavpack.c:2826:43: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2826:33: danger: ‘sptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
wavpack-5.8.1/cli/wavpack.c:2841:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sptr’
wavpack-5.8.1/cli/wavpack.c:2765:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2768:12: branch_true: following ‘true’ branch (when ‘samples_remaining != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2772:29: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2773:37: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2783:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2794:32: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2810:16: branch_false: following ‘false’ branch (when ‘md5_digest_source’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:2813:16: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2813:16: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2817:20: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2817:20: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2837:29: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2840:28: branch_true: following ‘true’ branch (when ‘scount != 0’)...
wavpack-5.8.1/cli/wavpack.c:2841:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2841:25: danger: ‘sptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
wavpack-5.8.1/cli/wavpack.c:2944:16: warning[-Wanalyzer-malloc-leak]: leak of ‘out2filename_temp’
wavpack-5.8.1/cli/wavpack.c:2942:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2947:18: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2957:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2965:5: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3005:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3005:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3036:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:3040:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3042:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3043:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3043:33: acquire_memory: allocated here
wavpack-5.8.1/cli/wavpack.c:3057:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:3060:21: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3065:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3070:16: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3070:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3071:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3076:20: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3096:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3105:30: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3105:30: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3105:13: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3106:9: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2944:16: danger: ‘out2filename_temp’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
wavpack-5.8.1/cli/wavpack.c:3046:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘outfilename_temp’ where non-null expected
wavpack-5.8.1/cli/wavpack.c:2942:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2947:18: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2957:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2965:5: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3005:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3005:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3036:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:3040:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3040:28: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3042:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3043:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3046:13: danger: argument 1 (‘outfilename_temp’) from [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
wavpack-5.8.1/cli/wavpack.c:3071:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘out2filename_temp’ where non-null expected
wavpack-5.8.1/cli/wavpack.c:2942:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2947:18: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2957:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2965:5: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:2967:15: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3005:8: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3005:25: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3036:8: branch_true: following ‘true’ branch (when ‘use_tempfiles != 0’)...
wavpack-5.8.1/cli/wavpack.c:3040:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3042:12: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3043:41: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3043:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3057:20: branch_false: following ‘false’ branch (when ‘count == 0’)...
wavpack-5.8.1/cli/wavpack.c:3060:21: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3065:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3070:16: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3070:16: branch_true: following ‘true’ branch (when ‘out2filename’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3071:17: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3071:17: danger: argument 1 (‘out2filename_temp’) from [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def41]
wavpack-5.8.1/cli/wavpack.c:3612: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
wavpack-5.8.1/cli/wavpack.c:3612:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3605:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3606:26: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3608:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3609:37: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3609:37: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3611:29: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3612:39: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3612:21: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
wavpack-5.8.1/cli/wavpack.c:3662:20: warning[-Wanalyzer-malloc-leak]: leak of ‘format_buffer’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: allocated here
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3660:13: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3662:20: danger: ‘format_buffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
wavpack-5.8.1/cli/wavpack.c:3683:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3673:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3673:20: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3678:32: branch_true: following ‘true’ branch (when ‘cc != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3681:42: branch_true: following ‘true’ branch (when ‘si != 4096’)...
wavpack-5.8.1/cli/wavpack.c:3682:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3682:36: branch_true: following ‘true’ branch (when ‘si < samples_this_block’)...
wavpack-5.8.1/cli/wavpack.c:3683:47: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3683:37: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3683:98: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3683:37: danger: ‘dptr’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
wavpack-5.8.1/cli/wavpack.c:3685:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3673:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3673:20: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3678:32: branch_true: following ‘true’ branch (when ‘cc != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3681:42: branch_true: following ‘true’ branch (when ‘si != 4096’)...
wavpack-5.8.1/cli/wavpack.c:3682:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3682:36: branch_false: following ‘false’ branch (when ‘si >= samples_this_block’)...
wavpack-5.8.1/cli/wavpack.c:3685:38: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3685:37: danger: ‘dptr’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
wavpack-5.8.1/cli/wavpack.c:3705:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3673:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3673:20: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3702:34: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3704:28: branch_true: following ‘true’ branch (when ‘scount != 0’)...
wavpack-5.8.1/cli/wavpack.c:3705:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3705:25: danger: ‘dptr’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def47]
wavpack-5.8.1/cli/wavpack.c:3779: warning[uninitvar]: Uninitialized variable: temp
Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
wavpack-5.8.1/cli/wavpack.c:3779:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘temp’
wavpack-5.8.1/cli/wavpack.c:2747:12: enter_function: entry to ‘pack_dsd_audio’
wavpack-5.8.1/cli/wavpack.c:2768:12: branch_true: following ‘true’ branch (when ‘samples_remaining != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2772:29: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2773:37: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2783:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2784:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2784:20: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2788:25: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2788:25: branch_false: following ‘false’ branch (when ‘samples_remaining > 4095’)...
wavpack-5.8.1/cli/wavpack.c:2796:31: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2803:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2804:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2805:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2805:21: call_function: calling ‘reorder_channels’ from ‘pack_dsd_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
wavpack-5.8.1/cli/wavpack.c:3797:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘temp’
wavpack-5.8.1/cli/wavpack.c:3790:8: branch_true: following ‘true’ branch (when ‘num_chans > 16’)...
wavpack-5.8.1/cli/wavpack.c:3791:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3791:16: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3793:12: branch_true: following ‘true’ branch (when ‘num_samples != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3796:24: branch_true: following ‘true’ branch (when ‘chan < num_chans’)...
wavpack-5.8.1/cli/wavpack.c:3797:38: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3797:13: danger: ‘temp + (sizetype)chan * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
wavpack-5.8.1/cli/wavpack.c:3799:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘temp’
wavpack-5.8.1/cli/wavpack.c:3817:12: enter_function: entry to ‘verify_audio’
wavpack-5.8.1/cli/wavpack.c:3841:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3846:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3858:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3859:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3861:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3862:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3878:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3881:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3881:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3882:13: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3882:13: call_function: calling ‘unreorder_channels’ from ‘verify_audio’
Error: CPPCHECK_WARNING (CWE-476): [#def51]
wavpack-5.8.1/cli/wavpack.c:3865: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
wavpack-5.8.1/cli/wavpack.c:3865:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wavpack.c:3841:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3846:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3858:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3859:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3861:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3862:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3862:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3864:25: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3865:35: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3865:17: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
wavpack-5.8.1/cli/wavpack.c:3900:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3841:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3846:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3858:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3859:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3861:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3862:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3878:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3881:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3881:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3884:16: branch_true: following ‘true’ branch (when ‘samples_unpacked != 0’)...
wavpack-5.8.1/cli/wavpack.c:3885:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3887:16: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3888:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3888:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3889:57: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3889:49: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3892:24: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3895:32: branch_true: following ‘true’ branch (when ‘cc != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3898:42: branch_true: following ‘true’ branch (when ‘si != 4096’)...
wavpack-5.8.1/cli/wavpack.c:3899:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3899:36: branch_true: following ‘true’ branch (when ‘si < samples_this_block’)...
wavpack-5.8.1/cli/wavpack.c:3900:47: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3900:37: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3900:98: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3900:37: danger: ‘dptr’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
wavpack-5.8.1/cli/wavpack.c:3902:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3841:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3846:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3858:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3859:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3861:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3862:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3878:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3881:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3881:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3884:16: branch_true: following ‘true’ branch (when ‘samples_unpacked != 0’)...
wavpack-5.8.1/cli/wavpack.c:3885:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3887:16: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3888:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3888:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3889:57: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3889:49: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3892:24: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3895:32: branch_true: following ‘true’ branch (when ‘cc != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3898:42: branch_true: following ‘true’ branch (when ‘si != 4096’)...
wavpack-5.8.1/cli/wavpack.c:3899:36: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3899:36: branch_false: following ‘false’ branch (when ‘si >= samples_this_block’)...
wavpack-5.8.1/cli/wavpack.c:3902:38: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3902:37: danger: ‘dptr’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
wavpack-5.8.1/cli/wavpack.c:3916:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3841:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3846:8: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3858:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3859:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3861:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3862:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3878:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3881:13: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3881:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3884:16: branch_true: following ‘true’ branch (when ‘samples_unpacked != 0’)...
wavpack-5.8.1/cli/wavpack.c:3885:22: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3887:16: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3888:21: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3888:20: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:3889:57: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3889:49: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3892:24: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3913:38: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3915:32: branch_true: following ‘true’ branch (when ‘scount != 0’)...
wavpack-5.8.1/cli/wavpack.c:3916:40: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3916:29: danger: ‘dptr’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def56]
wavpack-5.8.1/cli/wavpack.c:4025: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: settings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
wavpack-5.8.1/cli/wavpack.c:4118:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
wavpack-5.8.1/cli/wavpack.c:4124:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
wavpack-5.8.1/cli/wavpack.c:4132:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
wavpack-5.8.1/cli/wavpack.c:4140:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
wavpack-5.8.1/cli/wavpack.c:4156:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
wavpack-5.8.1/cli/wavpack.c:4162:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
wavpack-5.8.1/cli/wavpack.c:4170:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
wavpack-5.8.1/cli/wavpack.c:4178:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
wavpack-5.8.1/cli/wavpack.c:4194:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
wavpack-5.8.1/cli/wavpack.c:4200:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
wavpack-5.8.1/cli/wavpack.c:4208:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
wavpack-5.8.1/cli/wavpack.c:4216:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
wavpack-5.8.1/cli/wavpack.c:4232:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
wavpack-5.8.1/cli/wavpack.c:4238:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
wavpack-5.8.1/cli/wavpack.c:4246:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
wavpack-5.8.1/cli/wavpack.c:4254:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
wavpack-5.8.1/cli/wavpack.c:2534:12: enter_function: entry to ‘pack_audio’
wavpack-5.8.1/cli/wavpack.c:2557:21: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:2560:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2560:42: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2581:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:2586:30: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:2599:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:2606:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2610:12: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/cli/wavpack.c:2614:23: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:2616:13: call_function: calling ‘load_samples’ from ‘pack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
wavpack-5.8.1/cli/wavpack.c:4296:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
wavpack-5.8.1/cli/wavpack.c:4302:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
wavpack-5.8.1/cli/wavpack.c:4310:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
wavpack-5.8.1/cli/wavpack.c:4319:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
wavpack-5.8.1/cli/wavpack.c:4340:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
wavpack-5.8.1/cli/wavpack.c:4346:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
wavpack-5.8.1/cli/wavpack.c:4354:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
wavpack-5.8.1/cli/wavpack.c:4363:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
wavpack-5.8.1/cli/wavpack.c:4384:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
wavpack-5.8.1/cli/wavpack.c:4390:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
wavpack-5.8.1/cli/wavpack.c:4398:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
wavpack-5.8.1/cli/wavpack.c:4407:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
wavpack-5.8.1/cli/wavpack.c:4428:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
wavpack-5.8.1/cli/wavpack.c:4434:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
wavpack-5.8.1/cli/wavpack.c:4442:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
wavpack-5.8.1/cli/wavpack.c:4451:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dptr’
wavpack-5.8.1/cli/wavpack.c:3582:12: enter_function: entry to ‘repack_audio’
wavpack-5.8.1/cli/wavpack.c:3601:8: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3602:33: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3602:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wavpack.c:3622:8: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3634:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3637:12: branch_false: following ‘false’ branch (when ‘quantize_bit_mask == 0’)...
wavpack-5.8.1/cli/wavpack.c:3659:14: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3659:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3665:12: branch_true: following ‘true’ branch (when ‘md5_digest_source’ is non-NULL)...
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:3666:16: branch_false: following ‘false’ branch (when ‘new_channel_order’ is NULL)...
wavpack-5.8.1/cli/wavpack.c:3669:17: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3669:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wavpack.c:3709:74: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:3709:17: call_function: calling ‘store_samples’ from ‘repack_audio’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
wavpack-5.8.1/cli/wavpack.c:4548:13: warning[-Wanalyzer-malloc-leak]: leak of ‘converter’
wavpack-5.8.1/cli/wavpack.c:4564:21: acquire_memory: allocated here
wavpack-5.8.1/cli/wavpack.c:4567:8: branch_false: following ‘false’ branch (when ‘converter == 18446744073709551615’)...
wavpack-5.8.1/cli/wavpack.c:4574:5: branch_false: ...to here
wavpack-5.8.1/cli/wavpack.c:4576:8: branch_true: following ‘true’ branch (when ‘err == -1’)...
wavpack-5.8.1/cli/wavpack.c:4577:9: branch_true: ...to here
wavpack-5.8.1/cli/wavpack.c:4548:13: danger: ‘converter’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
wavpack-5.8.1/cli/wavpack.c:4548:13: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
wavpack-5.8.1/cli/wavpack.c:4533:18: acquire_memory: allocated here
wavpack-5.8.1/cli/wavpack.c:4544:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wavpack.c:4548:13: danger: ‘temp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def91]
wavpack-5.8.1/cli/wavpack.c:4551: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-401): [#def92]
wavpack-5.8.1/cli/wvgain.c:248: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
wavpack-5.8.1/cli/wvgain.c:249:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘matches’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:249:21: release_memory: ‘matches’ is NULL
wavpack-5.8.1/cli/wvgain.c:249:13: danger: dereference of NULL ‘matches + (long unsigned int)num_files * 8’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def94]
wavpack-5.8.1/cli/wvgain.c:250:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*argv) + 10)’ where non-null expected
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:249:35: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvgain.c:250:13: danger: argument 1 (‘malloc(strlen(*argv) + 10)’) from [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-126): [#def95]
wavpack-5.8.1/cli/wvgain.c:304:32: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:303:35: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:304:40: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:304:32: danger: out-of-bounds read from byte 8 till byte 15 but region ends at byte 8
Error: CPPCHECK_WARNING (CWE-401): [#def96]
wavpack-5.8.1/cli/wvgain.c:318: error[memleakOnRealloc]: Common realloc mistake: 'listbuff' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-415): [#def97]
wavpack-5.8.1/cli/wvgain.c:318:28: warning[-Wanalyzer-double-free]: double-‘free’ of ‘listbuff’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_false: following ‘false’ branch (when ‘bytes_read > 1023’)...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_false: following ‘false’ branch (when ‘bytes_read > 1023’)...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:318:28: danger: second ‘free’ here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
wavpack-5.8.1/cli/wvgain.c:319:17: warning[-Wanalyzer-null-argument]: use of NULL ‘listbuff’ where non-null expected
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:319:25: release_memory: ‘listbuff’ is NULL
wavpack-5.8.1/cli/wvgain.c:319:17: danger: argument 1 (‘listbuff + (sizetype)listbytes’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
wavpack-5.8.1/cli/wvgain.c:322:20: warning[-Wanalyzer-malloc-leak]: leak of ‘listbuff’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_false: following ‘false’ branch (when ‘bytes_read > 1023’)...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_false: following ‘false’ branch (when ‘bytes_read > 1023’)...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: danger: ‘listbuff’ leaks here; was allocated at [(20)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def100]
wavpack-5.8.1/cli/wvgain.c:332:25: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cp’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_false: following ‘false’ branch (when ‘bytes_read > 1023’)...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_true: following ‘true’ branch (when ‘bytes_read <= 1023’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:332:25: danger: use after ‘free’ of ‘cp’
Error: CPPCHECK_WARNING (CWE-476): [#def101]
wavpack-5.8.1/cli/wvgain.c:342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
wavpack-5.8.1/cli/wvgain.c:342:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fname’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_true: following ‘true’ branch (when ‘bytes_read <= 1023’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:332:20: branch_true: following ‘true’ branch (when ‘c != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:334:24: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:337:20: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:337:20: branch_true: following ‘true’ branch (when ‘c != 0’)...
wavpack-5.8.1/cli/wvgain.c:338:35: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:338:35: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvgain.c:342:25: danger: ‘fname + (sizetype)ci’ could be NULL: unchecked value from [(29)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/28)
Error: CPPCHECK_WARNING (CWE-476): [#def103]
wavpack-5.8.1/cli/wvgain.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: CPPCHECK_WARNING (CWE-401): [#def104]
wavpack-5.8.1/cli/wvgain.c:346: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
wavpack-5.8.1/cli/wvgain.c:351:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘matches’
wavpack-5.8.1/cli/wvgain.c:175:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
wavpack-5.8.1/cli/wvgain.c:179:12: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:252:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:253:18: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:175:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
wavpack-5.8.1/cli/wvgain.c:262:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:266:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:271:9: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:280:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:285:8: branch_false: following ‘false’ branch (when ‘error_count == 0’)...
wavpack-5.8.1/cli/wvgain.c:288:5: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:290:26: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:291:36: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:298:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvgain.c:299:33: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:309:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:322:20: branch_true: following ‘true’ branch (when ‘bytes_read <= 1023’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:332:20: branch_true: following ‘true’ branch (when ‘c != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:334:24: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:337:20: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:337:20: branch_true: following ‘true’ branch (when ‘c != 0’)...
wavpack-5.8.1/cli/wvgain.c:338:35: branch_true: ...to here
wavpack-5.8.1/cli/wvgain.c:343:28: branch_false: following ‘false’ branch (when ‘c == 10’)...
wavpack-5.8.1/cli/wvgain.c:345:28: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:348:46: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvgain.c:351:21: branch_false: ...to here
wavpack-5.8.1/cli/wvgain.c:351:29: release_memory: ‘matches’ is NULL
wavpack-5.8.1/cli/wvgain.c:351:29: release_memory: ‘matches’ is NULL
wavpack-5.8.1/cli/wvgain.c:351:21: danger: dereference of NULL ‘matches + (long unsigned int)(file_index + 1) * 8’
Error: CPPCHECK_WARNING (CWE-401): [#def106]
wavpack-5.8.1/cli/wvtag.c:333: error[memleakOnRealloc]: Common realloc mistake: 'tag_items' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def107]
wavpack-5.8.1/cli/wvtag.c:358: error[memleakOnRealloc]: Common realloc mistake: 'tag_items' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def108]
wavpack-5.8.1/cli/wvtag.c:366: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def109]
wavpack-5.8.1/cli/wvtag.c:430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def110]
wavpack-5.8.1/cli/wvtag.c:446: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_value
Error: CPPCHECK_WARNING (CWE-401): [#def111]
wavpack-5.8.1/cli/wvtag.c:552: error[memleakOnRealloc]: Common realloc mistake: 'listbuff' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def112]
wavpack-5.8.1/cli/wvtag.c:576: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: CPPCHECK_WARNING (CWE-476): [#def113]
wavpack-5.8.1/cli/wvtag.c:579: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: CPPCHECK_WARNING (CWE-401): [#def114]
wavpack-5.8.1/cli/wvtag.c:580: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def115]
wavpack-5.8.1/cli/wvtag.c:903: error[memleakOnRealloc]: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def116]
wavpack-5.8.1/cli/wvtag.c:905:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(spec) + 10)’ where non-null expected
wavpack-5.8.1/cli/wvtag.c:904:45: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:905:5: danger: argument 1 (‘malloc(strlen(spec) + 10)’) from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def117]
wavpack-5.8.1/cli/wvtag.c:916: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: extraction_spec
Error: GCC_ANALYZER_WARNING (CWE-688): [#def118]
wavpack-5.8.1/cli/wvtag.c:916:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘extraction_spec’ where non-null expected
wavpack-5.8.1/cli/wvtag.c:914:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:915:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:916:29: danger: argument 1 (‘extraction_spec’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def119]
wavpack-5.8.1/cli/wvtag.c:919:61: warning[-Wanalyzer-null-argument]: use of NULL ‘output_spec’ where non-null expected
wavpack-5.8.1/cli/wvtag.c:914:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:919:12: branch_true: following ‘true’ branch (when ‘extraction_spec < output_spec’)...
wavpack-5.8.1/cli/wvtag.c:919:61: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:919:61: danger: argument 1 (‘output_spec’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def120]
wavpack-5.8.1/cli/wvtag.c:923:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tag_filename[0]’
wavpack-5.8.1/cli/wvtag.c:909:12: enter_function: entry to ‘do_tag_extractions’
wavpack-5.8.1/cli/wvtag.c:914:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:919:12: branch_false: following ‘false’ branch (when ‘extraction_spec >= output_spec’)...
wavpack-5.8.1/cli/wvtag.c:922:13: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:922:13: call_function: calling ‘dump_tag_item_to_file’ from ‘do_tag_extractions’
wavpack-5.8.1/cli/wvtag.c:922:13: return_function: returning to ‘do_tag_extractions’ from ‘dump_tag_item_to_file’
wavpack-5.8.1/cli/wvtag.c:922:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:923:36: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:923:65: danger: use of uninitialized value ‘tag_filename[0]’ here
Error: CPPCHECK_WARNING (CWE-476): [#def121]
wavpack-5.8.1/cli/wvtag.c:930: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: full_filename
Error: GCC_ANALYZER_WARNING (CWE-688): [#def122]
wavpack-5.8.1/cli/wvtag.c:930:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘full_filename’ where non-null expected
wavpack-5.8.1/cli/wvtag.c:909:12: enter_function: entry to ‘do_tag_extractions’
wavpack-5.8.1/cli/wvtag.c:914:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:919:12: branch_false: following ‘false’ branch (when ‘extraction_spec >= output_spec’)...
wavpack-5.8.1/cli/wvtag.c:922:13: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:922:13: call_function: calling ‘dump_tag_item_to_file’ from ‘do_tag_extractions’
wavpack-5.8.1/cli/wvtag.c:922:13: return_function: returning to ‘do_tag_extractions’ from ‘dump_tag_item_to_file’
wavpack-5.8.1/cli/wvtag.c:922:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:923:36: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:926:16: branch_false: following ‘false’ branch (when ‘output_spec’ is NULL)...
wavpack-5.8.1/cli/wvtag.c:929:37: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:929:29: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:930:13: danger: argument 1 (‘full_filename’) from [(22)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/21) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def123]
wavpack-5.8.1/cli/wvtag.c:1076: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
Error: CPPCHECK_WARNING (CWE-476): [#def124]
wavpack-5.8.1/cli/wvtag.c:1105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
Error: CPPCHECK_WARNING (CWE-476): [#def125]
wavpack-5.8.1/cli/wvtag.c:1195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: value
Error: CPPCHECK_WARNING (CWE-476): [#def126]
wavpack-5.8.1/cli/wvtag.c:1293: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: string
Error: CPPCHECK_WARNING (CWE-476): [#def127]
wavpack-5.8.1/cli/wvtag.c:1297: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
wavpack-5.8.1/cli/wvtag.c:1312:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
wavpack-5.8.1/cli/wvtag.c:1293:12: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1297:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1298:16: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1305:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
wavpack-5.8.1/cli/wvtag.c:1308:28: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1308:20: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:1310:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1311:16: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1311:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1312:18: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1312:17: danger: ‘p’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
wavpack-5.8.1/cli/wvtag.c:1318:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
wavpack-5.8.1/cli/wvtag.c:1293:12: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1297:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1298:16: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1305:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
wavpack-5.8.1/cli/wvtag.c:1308:28: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1308:20: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:1310:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1311:16: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1311:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvtag.c:1314:18: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1314:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1318:9: danger: ‘p’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def130]
wavpack-5.8.1/cli/wvtag.c:1370: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
wavpack-5.8.1/cli/wvtag.c:1374:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("", "UTF-8")’
wavpack-5.8.1/cli/wvtag.c:1372:17: acquire_memory: allocated here
wavpack-5.8.1/cli/wvtag.c:1374:8: danger: ‘iconv_open("", "UTF-8")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def132]
wavpack-5.8.1/cli/wvtag.c:1388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
wavpack-5.8.1/cli/wvtag.c:1523:13: warning[-Wanalyzer-malloc-leak]: leak of ‘converter’
wavpack-5.8.1/cli/wvtag.c:1539:21: acquire_memory: allocated here
wavpack-5.8.1/cli/wvtag.c:1542:8: branch_false: following ‘false’ branch (when ‘converter == 18446744073709551615’)...
wavpack-5.8.1/cli/wvtag.c:1549:5: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1551:8: branch_true: following ‘true’ branch (when ‘err == -1’)...
wavpack-5.8.1/cli/wvtag.c:1552:9: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1523:13: danger: ‘converter’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
wavpack-5.8.1/cli/wvtag.c:1523:13: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
wavpack-5.8.1/cli/wvtag.c:1508:18: acquire_memory: allocated here
wavpack-5.8.1/cli/wvtag.c:1519:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1523:13: danger: ‘temp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def135]
wavpack-5.8.1/cli/wvtag.c:1526: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def136]
wavpack-5.8.1/cli/wvtag.c:1638: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchname
Error: GCC_ANALYZER_WARNING (CWE-688): [#def137]
wavpack-5.8.1/cli/wvtag.c:1638:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘matchname’ where non-null expected
wavpack-5.8.1/cli/wvtag.c:1627:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvtag.c:1628:19: branch_true: ...to here
wavpack-5.8.1/cli/wvtag.c:1628:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvtag.c:1631:12: branch_false: following ‘false’ branch (when ‘matchname’ is NULL)...
wavpack-5.8.1/cli/wvtag.c:1637:41: branch_false: ...to here
wavpack-5.8.1/cli/wvtag.c:1637:25: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvtag.c:1638:13: danger: argument 1 (‘matchname’) from [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-401): [#def138]
wavpack-5.8.1/cli/wvunpack.c:317: error[memleakOnRealloc]: Common realloc mistake: 'argv_fn' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def139]
wavpack-5.8.1/cli/wvunpack.c:318: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: option
Error: CPPCHECK_WARNING (CWE-476): [#def140]
wavpack-5.8.1/cli/wvunpack.c:320: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: option
Error: CPPCHECK_WARNING (CWE-476): [#def141]
wavpack-5.8.1/cli/wvunpack.c:621: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outfilename
Error: CPPCHECK_WARNING (CWE-401): [#def142]
wavpack-5.8.1/cli/wvunpack.c:626: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def143]
wavpack-5.8.1/cli/wvunpack.c:762: error[memleakOnRealloc]: Common realloc mistake: 'listbuff' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def144]
wavpack-5.8.1/cli/wvunpack.c:786: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: CPPCHECK_WARNING (CWE-476): [#def145]
wavpack-5.8.1/cli/wvunpack.c:789: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fname
Error: CPPCHECK_WARNING (CWE-401): [#def146]
wavpack-5.8.1/cli/wvunpack.c:790: error[memleakOnRealloc]: Common realloc mistake: 'matches' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def147]
wavpack-5.8.1/cli/wvunpack.c:923: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outfilename
Error: CPPCHECK_WARNING (CWE-476): [#def148]
wavpack-5.8.1/cli/wvunpack.c:1273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: infilename_c
Error: CPPCHECK_WARNING (CWE-476): [#def149]
wavpack-5.8.1/cli/wvunpack.c:1274: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: infilename_c
Error: CPPCHECK_WARNING (CWE-476): [#def150]
wavpack-5.8.1/cli/wvunpack.c:1354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: block_buffer
Error: CPPCHECK_WARNING (CWE-682): [#def151]
wavpack-5.8.1/cli/wvunpack.c:1356: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def152]
wavpack-5.8.1/cli/wvunpack.c:1393: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: block_buffer_c
Error: CPPCHECK_WARNING (CWE-682): [#def153]
wavpack-5.8.1/cli/wvunpack.c:1395: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def154]
wavpack-5.8.1/cli/wvunpack.c:2156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
wavpack-5.8.1/cli/wvunpack.c:2156:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wvunpack.c:2138:8: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
wavpack-5.8.1/cli/wvunpack.c:2149:9: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2149:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2150:22: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2152:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2153:33: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2153:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2155:25: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2156:35: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2156:17: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def156]
wavpack-5.8.1/cli/wvunpack.c:2306: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
wavpack-5.8.1/cli/wvunpack.c:2306:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_channel_order’
wavpack-5.8.1/cli/wvunpack.c:2293:8: branch_false: following ‘false’ branch (when ‘output_buffer’ is non-NULL)...
wavpack-5.8.1/cli/wvunpack.c:2299:9: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2299:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2300:22: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2302:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2303:33: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2303:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2305:25: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2306:35: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2306:17: danger: ‘new_channel_order + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-401): [#def158]
wavpack-5.8.1/cli/wvunpack.c:2423: error[memleakOnRealloc]: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def159]
wavpack-5.8.1/cli/wvunpack.c:2425:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(spec) + 10)’ where non-null expected
wavpack-5.8.1/cli/wvunpack.c:2424:45: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2425:5: danger: argument 1 (‘malloc(strlen(spec) + 10)’) from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def160]
wavpack-5.8.1/cli/wvunpack.c:2436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: extraction_spec
Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
wavpack-5.8.1/cli/wvunpack.c:2436:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘extraction_spec’ where non-null expected
wavpack-5.8.1/cli/wvunpack.c:2434:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2435:33: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2436:29: danger: argument 1 (‘extraction_spec’) from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def162]
wavpack-5.8.1/cli/wvunpack.c:2439:61: warning[-Wanalyzer-null-argument]: use of NULL ‘output_spec’ where non-null expected
wavpack-5.8.1/cli/wvunpack.c:2434:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2439:12: branch_true: following ‘true’ branch (when ‘extraction_spec < output_spec’)...
wavpack-5.8.1/cli/wvunpack.c:2439:61: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2439:61: danger: argument 1 (‘output_spec’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def163]
wavpack-5.8.1/cli/wvunpack.c:2443:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tag_filename[0]’
wavpack-5.8.1/cli/wvunpack.c:2429:12: enter_function: entry to ‘do_tag_extractions’
wavpack-5.8.1/cli/wvunpack.c:2434:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2439:12: branch_false: following ‘false’ branch (when ‘extraction_spec >= output_spec’)...
wavpack-5.8.1/cli/wvunpack.c:2442:13: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2442:13: call_function: calling ‘dump_tag_item_to_file’ from ‘do_tag_extractions’
wavpack-5.8.1/cli/wvunpack.c:2442:13: return_function: returning to ‘do_tag_extractions’ from ‘dump_tag_item_to_file’
wavpack-5.8.1/cli/wvunpack.c:2442:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2443:36: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2443:65: danger: use of uninitialized value ‘tag_filename[0]’ here
Error: CPPCHECK_WARNING (CWE-476): [#def164]
wavpack-5.8.1/cli/wvunpack.c:2450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: full_filename
Error: GCC_ANALYZER_WARNING (CWE-688): [#def165]
wavpack-5.8.1/cli/wvunpack.c:2450:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘full_filename’ where non-null expected
wavpack-5.8.1/cli/wvunpack.c:2429:12: enter_function: entry to ‘do_tag_extractions’
wavpack-5.8.1/cli/wvunpack.c:2434:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2439:12: branch_false: following ‘false’ branch (when ‘extraction_spec >= output_spec’)...
wavpack-5.8.1/cli/wvunpack.c:2442:13: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2442:13: call_function: calling ‘dump_tag_item_to_file’ from ‘do_tag_extractions’
wavpack-5.8.1/cli/wvunpack.c:2442:13: return_function: returning to ‘do_tag_extractions’ from ‘dump_tag_item_to_file’
wavpack-5.8.1/cli/wvunpack.c:2442:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2443:36: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2446:16: branch_false: following ‘false’ branch (when ‘output_spec’ is NULL)...
wavpack-5.8.1/cli/wvunpack.c:2449:37: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2449:29: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2450:13: danger: argument 1 (‘full_filename’) from [(22)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/21) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
wavpack-5.8.1/cli/wvunpack.c:2768:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘temp’
wavpack-5.8.1/cli/wvunpack.c:2761:8: branch_true: following ‘true’ branch (when ‘num_chans > 16’)...
wavpack-5.8.1/cli/wvunpack.c:2762:16: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2762:16: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:2764:12: branch_true: following ‘true’ branch (when ‘num_samples != 0’)...
branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2767:24: branch_true: following ‘true’ branch (when ‘chan < num_chans’)...
wavpack-5.8.1/cli/wvunpack.c:2768:38: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2768:13: danger: ‘temp + (sizetype)chan * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
wavpack-5.8.1/cli/wvunpack.c:2770:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘temp’
wavpack-5.8.1/cli/wvunpack.c:2274:12: enter_function: entry to ‘unpack_dsd_audio’
wavpack-5.8.1/cli/wvunpack.c:2293:8: branch_false: following ‘false’ branch (when ‘output_buffer’ is non-NULL)...
wavpack-5.8.1/cli/wvunpack.c:2299:9: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2299:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2300:22: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2302:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:2303:33: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2314:12: branch_true: following ‘true’ branch (when ‘result == 0’)...
wavpack-5.8.1/cli/wvunpack.c:2315:38: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2324:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvunpack.c:2327:12: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:2327:12: branch_true: following ‘true’ branch (when ‘new_channel_order’ is non-NULL)...
wavpack-5.8.1/cli/wvunpack.c:2328:13: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:2328:13: call_function: calling ‘unreorder_channels’ from ‘unpack_dsd_audio’
Error: CPPCHECK_WARNING (CWE-476): [#def168]
wavpack-5.8.1/cli/wvunpack.c:2976: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
Error: CPPCHECK_WARNING (CWE-476): [#def169]
wavpack-5.8.1/cli/wvunpack.c:3005: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
Error: CPPCHECK_WARNING (CWE-476): [#def170]
wavpack-5.8.1/cli/wvunpack.c:3201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: value
Error: CPPCHECK_WARNING (CWE-476): [#def171]
wavpack-5.8.1/cli/wvunpack.c:3252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: string
Error: CPPCHECK_WARNING (CWE-476): [#def172]
wavpack-5.8.1/cli/wvunpack.c:3256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
wavpack-5.8.1/cli/wvunpack.c:3271:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
wavpack-5.8.1/cli/wvunpack.c:3252:12: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3256:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:3257:16: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3264:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
wavpack-5.8.1/cli/wvunpack.c:3267:28: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:3267:20: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:3269:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:3270:16: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3270:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:3271:18: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3271:17: danger: ‘p’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
wavpack-5.8.1/cli/wvunpack.c:3277:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
wavpack-5.8.1/cli/wvunpack.c:3252:12: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3256:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:3257:16: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3264:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
wavpack-5.8.1/cli/wvunpack.c:3267:28: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:3267:20: acquire_memory: this call could return NULL
wavpack-5.8.1/cli/wvunpack.c:3269:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/cli/wvunpack.c:3270:16: branch_true: ...to here
wavpack-5.8.1/cli/wvunpack.c:3270:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/cli/wvunpack.c:3273:18: branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:3273:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/cli/wvunpack.c:3277:9: danger: ‘p’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def175]
wavpack-5.8.1/cli/wvunpack.c:3438: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
wavpack-5.8.1/cli/wvunpack.c:3442:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("", "UTF-8")’
wavpack-5.8.1/cli/wvunpack.c:3440:17: acquire_memory: allocated here
wavpack-5.8.1/cli/wvunpack.c:3442:8: danger: ‘iconv_open("", "UTF-8")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def177]
wavpack-5.8.1/cli/wvunpack.c:3456: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: COMPILER_WARNING (CWE-686): [#def178]
wavpack-5.8.1/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-V0ydFm/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘cos’; expected ‘double(double)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
wavpack-5.8.1/src/extra1.c:94:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in_samples’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:564:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:581:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:586:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:586:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:587:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:587:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:588:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
Error: CPPCHECK_WARNING (CWE-758): [#def180]
wavpack-5.8.1/src/extra1.c:97: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
wavpack-5.8.1/src/extra1.c:99:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:564:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
wavpack-5.8.1/src/extra1.c:110:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in_samples’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:564:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:581:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:586:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:586:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:587:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:587:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:588:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
Error: CPPCHECK_WARNING (CWE-758): [#def183]
wavpack-5.8.1/src/extra1.c:114: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
wavpack-5.8.1/src/extra1.c:116:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:564:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
wavpack-5.8.1/src/extra1.c:513:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lptr’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:569:24: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:581:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:586:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:586:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:587:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:587:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:588:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:588:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:593:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:593:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:594:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:594:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:595:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:595:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:600:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:600:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:601:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:601:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:602:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:602:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:607:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:607:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:608:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:608:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:609:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:609:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:611:9: call_function: calling ‘mono_add_noise’ from ‘execute_mono’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
wavpack-5.8.1/src/extra1.c:523:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lptr’
wavpack-5.8.1/src/extra1.c:528:6: enter_function: entry to ‘execute_mono’
wavpack-5.8.1/src/extra1.c:547:8: branch_false: following ‘false’ branch (when ‘i != num_samples’)...
wavpack-5.8.1/src/extra1.c:555:20: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:557:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra1.c:564:23: branch_false: ...to here
wavpack-5.8.1/src/extra1.c:568:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra1.c:569:24: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra1.c:579:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:579:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:580:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:580:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:581:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:581:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:586:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:586:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:587:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:587:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:588:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:588:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:593:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:593:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:594:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:594:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:595:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:595:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:600:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:600:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:601:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:601:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:602:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:602:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:607:9: call_function: calling ‘decorr_mono_pass_reverse’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:607:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass_reverse’
wavpack-5.8.1/src/extra1.c:608:9: call_function: calling ‘reverse_mono_decorr’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:608:9: return_function: returning to ‘execute_mono’ from ‘reverse_mono_decorr’
wavpack-5.8.1/src/extra1.c:609:9: call_function: calling ‘decorr_mono_pass’ from ‘execute_mono’
wavpack-5.8.1/src/extra1.c:609:9: return_function: returning to ‘execute_mono’ from ‘decorr_mono_pass’
wavpack-5.8.1/src/extra1.c:611:9: call_function: calling ‘mono_add_noise’ from ‘execute_mono’
Error: CPPCHECK_WARNING (CWE-476): [#def187]
wavpack-5.8.1/src/extra1.c:570: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: noisy_buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
wavpack-5.8.1/src/extra2.c:103:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def189]
wavpack-5.8.1/src/extra2.c:104: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def190]
wavpack-5.8.1/src/extra2.c:110: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
wavpack-5.8.1/src/extra2.c:125:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def192]
wavpack-5.8.1/src/extra2.c:126: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def193]
wavpack-5.8.1/src/extra2.c:132: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
wavpack-5.8.1/src/extra2.c:147:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def195]
wavpack-5.8.1/src/extra2.c:148: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def196]
wavpack-5.8.1/src/extra2.c:154: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
wavpack-5.8.1/src/extra2.c:170:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def198]
wavpack-5.8.1/src/extra2.c:171: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def199]
wavpack-5.8.1/src/extra2.c:176: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
wavpack-5.8.1/src/extra2.c:207:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def201]
wavpack-5.8.1/src/extra2.c:208: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def202]
wavpack-5.8.1/src/extra2.c:212: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
wavpack-5.8.1/src/extra2.c:226:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def204]
wavpack-5.8.1/src/extra2.c:227: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def205]
wavpack-5.8.1/src/extra2.c:231: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
wavpack-5.8.1/src/extra2.c:248:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_samples’
wavpack-5.8.1/src/extra2.c:713:6: enter_function: entry to ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:732:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:741:20: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:743:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/extra2.c:749:9: branch_false: ...to here
wavpack-5.8.1/src/extra2.c:749:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:750:13: branch_true: ...to here
wavpack-5.8.1/src/extra2.c:757:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/extra2.c:761:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/extra2.c:772:9: call_function: calling ‘decorr_stereo_pass_reverse’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:772:9: return_function: returning to ‘execute_stereo’ from ‘decorr_stereo_pass_reverse’
wavpack-5.8.1/src/extra2.c:773:9: call_function: calling ‘reverse_decorr’ from ‘execute_stereo’
wavpack-5.8.1/src/extra2.c:773:9: return_function: returning to ‘execute_stereo’ from ‘reverse_decorr’
wavpack-5.8.1/src/extra2.c:774:9: call_function: calling ‘decorr_stereo_pass’ from ‘execute_stereo’
Error: CPPCHECK_WARNING (CWE-758): [#def207]
wavpack-5.8.1/src/extra2.c:249: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def208]
wavpack-5.8.1/src/extra2.c:254: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def209]
wavpack-5.8.1/src/extra2.c:763: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: noisy_buffer
Error: CPPCHECK_WARNING (CWE-476): [#def210]
wavpack-5.8.1/src/open_filename.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in2filename
Error: GCC_ANALYZER_WARNING (CWE-688): [#def211]
wavpack-5.8.1/src/open_filename.c:302:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘in2filename’ where non-null expected
wavpack-5.8.1/src/open_filename.c:285:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_filename.c:294:23: branch_false: ...to here
wavpack-5.8.1/src/open_filename.c:294:13: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_filename.c:299:9: branch_false: ...to here
wavpack-5.8.1/src/open_filename.c:299:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_filename.c:300:29: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_filename.c:302:9: danger: argument 1 (‘in2filename’) from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def212]
wavpack-5.8.1/src/open_filename.c:303: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in2filename
Error: CPPCHECK_WARNING (CWE-476): [#def213]
wavpack-5.8.1/src/open_legacy.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: trans_wv
Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
wavpack-5.8.1/src/open_legacy.c:103:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trans_wv’
wavpack-5.8.1/src/open_legacy.c:101:8: branch_true: following ‘true’ branch (when ‘wv_id’ is non-NULL)...
wavpack-5.8.1/src/open_legacy.c:102:47: branch_true: ...to here
wavpack-5.8.1/src/open_legacy.c:102:47: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_legacy.c:103:9: danger: ‘trans_wv’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def215]
wavpack-5.8.1/src/open_legacy.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: trans_wv
Error: CPPCHECK_WARNING (CWE-476): [#def216]
wavpack-5.8.1/src/open_legacy.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: trans_wvc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
wavpack-5.8.1/src/open_legacy.c:109:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘trans_wvc’
wavpack-5.8.1/src/open_legacy.c:101:8: branch_false: following ‘false’ branch (when ‘wv_id’ is NULL)...
wavpack-5.8.1/src/open_legacy.c:107:8: branch_false: ...to here
wavpack-5.8.1/src/open_legacy.c:107:8: branch_true: following ‘true’ branch (when ‘wvc_id’ is non-NULL)...
wavpack-5.8.1/src/open_legacy.c:108:48: branch_true: ...to here
wavpack-5.8.1/src/open_legacy.c:108:48: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_legacy.c:109:9: danger: ‘trans_wvc’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def218]
wavpack-5.8.1/src/open_legacy.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: trans_wvc
Error: CPPCHECK_WARNING (CWE-476): [#def219]
wavpack-5.8.1/src/open_raw.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: GCC_ANALYZER_WARNING (CWE-688): [#def220]
wavpack-5.8.1/src/open_raw.c:151:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘raw_wv’ where non-null expected
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:150:18: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:151:9: danger: argument 1 (‘raw_wv’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def221]
wavpack-5.8.1/src/open_raw.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: GCC_ANALYZER_WARNING (CWE-688): [#def222]
wavpack-5.8.1/src/open_raw.c:155:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘raw_wvc’ where non-null expected
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:154:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:154:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:155:13: danger: argument 1 (‘raw_wvc’) from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def223]
wavpack-5.8.1/src/open_raw.c:203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def224]
wavpack-5.8.1/src/open_raw.c:204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def225]
wavpack-5.8.1/src/open_raw.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
wavpack-5.8.1/src/open_raw.c:205:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wphdr’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:202:40: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:205:17: danger: ‘wphdr’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def227]
wavpack-5.8.1/src/open_raw.c:206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def228]
wavpack-5.8.1/src/open_raw.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def229]
wavpack-5.8.1/src/open_raw.c:208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def230]
wavpack-5.8.1/src/open_raw.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def231]
wavpack-5.8.1/src/open_raw.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
wavpack-5.8.1/src/open_raw.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:225:16: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_false: following ‘false’ branch (when ‘msi != 0’)...
wavpack-5.8.1/src/open_raw.c:167:27: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_false: following ‘false’ branch (when ‘msi != 0’)...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:214:17: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
wavpack-5.8.1/src/open_raw.c:215:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:215:64: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:215:47: danger: dereference of NULL ‘realloc(*raw_wv.segments, (long unsigned int)(*raw_wv.num_segments + 2) * 32) + (long unsigned int)msi * 32’
Error: CPPCHECK_WARNING (CWE-682): [#def234]
wavpack-5.8.1/src/open_raw.c:216: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def235]
wavpack-5.8.1/src/open_raw.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def236]
wavpack-5.8.1/src/open_raw.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def237]
wavpack-5.8.1/src/open_raw.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
wavpack-5.8.1/src/open_raw.c:252:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wphdr’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:225:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:226:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:242:20: branch_false: following ‘false’ branch (when ‘block_size <= corr_bytes’)...
wavpack-5.8.1/src/open_raw.c:249:44: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:249:44: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:252:21: danger: ‘wphdr’ could be NULL: unchecked value from [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
Error: CPPCHECK_WARNING (CWE-476): [#def239]
wavpack-5.8.1/src/open_raw.c:253: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def240]
wavpack-5.8.1/src/open_raw.c:254: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def241]
wavpack-5.8.1/src/open_raw.c:255: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def242]
wavpack-5.8.1/src/open_raw.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def243]
wavpack-5.8.1/src/open_raw.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: GCC_ANALYZER_WARNING (CWE-416): [#def244]
wavpack-5.8.1/src/open_raw.c:260:21: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘raw_wvc’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:225:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:226:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:242:20: branch_false: following ‘false’ branch (when ‘block_size <= corr_bytes’)...
wavpack-5.8.1/src/open_raw.c:249:44: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:260:21: danger: use after ‘free’ of ‘raw_wvc’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
wavpack-5.8.1/src/open_raw.c:262:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
wavpack-5.8.1/src/open_raw.c:143:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:145:18: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:153:12: branch_false: following ‘false’ branch...
branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:158:16: branch_true: following ‘true’ branch (when ‘main_bytes > 11’)...
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:159:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:160:33: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:176:16: branch_true: following ‘true’ branch (when ‘msi == 0’)...
wavpack-5.8.1/src/open_raw.c:176:26: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:195:16: branch_false: following ‘false’ branch (when ‘block_size <= main_bytes’)...
wavpack-5.8.1/src/open_raw.c:202:40: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:214:45: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:225:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:226:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:242:20: branch_false: following ‘false’ branch (when ‘block_size <= corr_bytes’)...
wavpack-5.8.1/src/open_raw.c:249:44: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:262:70: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:262:70: release_memory: ‘0’ is NULL
wavpack-5.8.1/src/open_raw.c:262:52: danger: dereference of NULL ‘realloc(*raw_wvc.segments, (long unsigned int)(*raw_wvc.num_segments + 2) * 32) + (long unsigned int)csi * 32’
Error: CPPCHECK_WARNING (CWE-682): [#def246]
wavpack-5.8.1/src/open_raw.c:263: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def247]
wavpack-5.8.1/src/open_raw.c:284: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: CPPCHECK_WARNING (CWE-476): [#def248]
wavpack-5.8.1/src/open_raw.c:285: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
wavpack-5.8.1/src/open_raw.c:285:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘raw_wv’
wavpack-5.8.1/src/open_raw.c:143:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_raw.c:283:22: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:283:22: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:285:13: danger: ‘raw_wv’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def250]
wavpack-5.8.1/src/open_raw.c:286: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: CPPCHECK_WARNING (CWE-476): [#def251]
wavpack-5.8.1/src/open_raw.c:287: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
wavpack-5.8.1/src/open_raw.c:287:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(32)’
wavpack-5.8.1/src/open_raw.c:143:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_raw.c:283:22: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:286:32: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:287:41: danger: ‘malloc(32)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def253]
wavpack-5.8.1/src/open_raw.c:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: CPPCHECK_WARNING (CWE-476): [#def254]
wavpack-5.8.1/src/open_raw.c:289: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wv
Error: CPPCHECK_WARNING (CWE-476): [#def255]
wavpack-5.8.1/src/open_raw.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: CPPCHECK_WARNING (CWE-476): [#def256]
wavpack-5.8.1/src/open_raw.c:295: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
wavpack-5.8.1/src/open_raw.c:295:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘raw_wvc’
wavpack-5.8.1/src/open_raw.c:143:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_raw.c:283:22: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:292:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:293:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:293:23: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:295:13: danger: ‘raw_wvc’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def258]
wavpack-5.8.1/src/open_raw.c:296: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: CPPCHECK_WARNING (CWE-476): [#def259]
wavpack-5.8.1/src/open_raw.c:297: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def260]
wavpack-5.8.1/src/open_raw.c:297:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(32)’
wavpack-5.8.1/src/open_raw.c:143:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_raw.c:283:22: branch_false: ...to here
wavpack-5.8.1/src/open_raw.c:292:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_raw.c:293:23: branch_true: ...to here
wavpack-5.8.1/src/open_raw.c:296:33: acquire_memory: this call could return NULL
wavpack-5.8.1/src/open_raw.c:297:42: danger: ‘malloc(32)’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def261]
wavpack-5.8.1/src/open_raw.c:298: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: CPPCHECK_WARNING (CWE-476): [#def262]
wavpack-5.8.1/src/open_raw.c:299: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
wavpack-5.8.1/src/open_utils.c:681:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘byteptr’
wavpack-5.8.1/src/open_utils.c:311:5: enter_function: entry to ‘unpack_init’
wavpack-5.8.1/src/open_utils.c:334:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/open_utils.c:339:16: branch_false: ...to here
wavpack-5.8.1/src/open_utils.c:341:12: call_function: calling ‘read_metadata_buff’ from ‘unpack_init’
wavpack-5.8.1/src/open_utils.c:341:12: return_function: returning to ‘unpack_init’ from ‘read_metadata_buff’
wavpack-5.8.1/src/open_utils.c:341:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/open_utils.c:342:14: branch_true: ...to here
wavpack-5.8.1/src/open_utils.c:342:14: call_function: calling ‘process_metadata’ from ‘unpack_init’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
wavpack-5.8.1/src/pack.c:110:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘byteptr’
wavpack-5.8.1/src/pack.c:1051:12: enter_function: entry to ‘pack_samples’
wavpack-5.8.1/src/pack.c:1099:8: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/src/pack.c:1102:26: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1125:9: call_function: calling ‘write_decorr_terms’ from ‘pack_samples’
Error: CPPCHECK_WARNING (CWE-682): [#def265]
wavpack-5.8.1/src/pack.c:240: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def266]
wavpack-5.8.1/src/pack.c:240: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: CPPCHECK_WARNING (CWE-682): [#def267]
wavpack-5.8.1/src/pack.c:281: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def268]
wavpack-5.8.1/src/pack.c:281: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
wavpack-5.8.1/src/pack.c:281:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:1051:12: enter_function: entry to ‘pack_samples’
wavpack-5.8.1/src/pack.c:1099:8: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/src/pack.c:1102:26: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1129:9: call_function: calling ‘write_decorr_weights’ from ‘pack_samples’
wavpack-5.8.1/src/pack.c:1129:9: return_function: returning to ‘pack_samples’ from ‘write_decorr_weights’
wavpack-5.8.1/src/pack.c:1141:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:1147:13: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1147:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:1153:13: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1153:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:1154:13: branch_true: ...to here
wavpack-5.8.1/src/pack.c:1154:13: call_function: calling ‘write_int32_info’ from ‘pack_samples’
Error: CPPCHECK_WARNING (CWE-682): [#def270]
wavpack-5.8.1/src/pack.c:294: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def271]
wavpack-5.8.1/src/pack.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
wavpack-5.8.1/src/pack.c:294:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:1051:12: enter_function: entry to ‘pack_samples’
wavpack-5.8.1/src/pack.c:1099:8: branch_false: following ‘false’ branch (when ‘sample_count != 0’)...
wavpack-5.8.1/src/pack.c:1102:26: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1129:9: call_function: calling ‘write_decorr_weights’ from ‘pack_samples’
wavpack-5.8.1/src/pack.c:1129:9: return_function: returning to ‘pack_samples’ from ‘write_decorr_weights’
wavpack-5.8.1/src/pack.c:1141:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:1147:13: branch_false: ...to here
wavpack-5.8.1/src/pack.c:1147:12: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:1148:13: branch_true: ...to here
wavpack-5.8.1/src/pack.c:1148:13: call_function: calling ‘write_float_info’ from ‘pack_samples’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
wavpack-5.8.1/src/pack.c:314:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:961:6: enter_function: entry to ‘send_general_metadata’
wavpack-5.8.1/src/pack.c:972:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:973:10: branch_true: ...to here
wavpack-5.8.1/src/pack.c:975:13: call_function: calling ‘write_channel_info’ from ‘send_general_metadata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
wavpack-5.8.1/src/pack.c:325:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:961:6: enter_function: entry to ‘send_general_metadata’
wavpack-5.8.1/src/pack.c:972:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:973:10: branch_true: ...to here
wavpack-5.8.1/src/pack.c:975:13: call_function: calling ‘write_channel_info’ from ‘send_general_metadata’
Error: CPPCHECK_WARNING (CWE-682): [#def275]
wavpack-5.8.1/src/pack.c:361: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def276]
wavpack-5.8.1/src/pack.c:361: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: GCC_ANALYZER_WARNING (CWE-476): [#def277]
wavpack-5.8.1/src/pack.c:361:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:961:6: enter_function: entry to ‘send_general_metadata’
wavpack-5.8.1/src/pack.c:972:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:973:10: branch_true: ...to here
wavpack-5.8.1/src/pack.c:972:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:974:9: branch_false: ...to here
wavpack-5.8.1/src/pack.c:973:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:986:37: branch_false: ...to here
wavpack-5.8.1/src/pack.c:986:9: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:987:9: branch_true: ...to here
wavpack-5.8.1/src/pack.c:987:9: call_function: calling ‘write_config_info’ from ‘send_general_metadata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
wavpack-5.8.1/src/pack.c:388:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:961:6: enter_function: entry to ‘send_general_metadata’
wavpack-5.8.1/src/pack.c:972:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:974:9: branch_false: ...to here
wavpack-5.8.1/src/pack.c:973:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:986:37: branch_false: ...to here
wavpack-5.8.1/src/pack.c:986:9: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack.c:992:8: branch_false: ...to here
wavpack-5.8.1/src/pack.c:992:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:993:9: branch_true: ...to here
wavpack-5.8.1/src/pack.c:993:9: call_function: calling ‘write_new_config_info’ from ‘send_general_metadata’
Error: CPPCHECK_WARNING (CWE-682): [#def279]
wavpack-5.8.1/src/pack.c:416: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted.
Error: CPPCHECK_WARNING (CWE-682): [#def280]
wavpack-5.8.1/src/pack.c:431: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def281]
wavpack-5.8.1/src/pack.c:431: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: GCC_ANALYZER_WARNING (CWE-476): [#def282]
wavpack-5.8.1/src/pack.c:431:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wpmd.data’
wavpack-5.8.1/src/pack.c:961:6: enter_function: entry to ‘send_general_metadata’
wavpack-5.8.1/src/pack.c:966:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack.c:967:9: call_function: calling ‘write_sample_rate’ from ‘send_general_metadata’
Error: CPPCHECK_WARNING (CWE-476): [#def283]
wavpack-5.8.1/src/pack.c:569: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: orig_data
Error: CPPCHECK_WARNING (CWE-476): [#def284]
wavpack-5.8.1/src/pack.c:1109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: saved_buffer
Error: CPPCHECK_WARNING (CWE-758): [#def285]
wavpack-5.8.1/src/pack.c:1254: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def286]
wavpack-5.8.1/src/pack.c:1261: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def287]
wavpack-5.8.1/src/pack.c:1364: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def288]
wavpack-5.8.1/src/pack.c:1365: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def289]
wavpack-5.8.1/src/pack.c:1376: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def290]
wavpack-5.8.1/src/pack.c:1379: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def291]
wavpack-5.8.1/src/pack.c:1392: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def292]
wavpack-5.8.1/src/pack.c:1393: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def293]
wavpack-5.8.1/src/pack.c:1543: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def294]
wavpack-5.8.1/src/pack.c:1548: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def295]
wavpack-5.8.1/src/pack.c:1560: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def296]
wavpack-5.8.1/src/pack.c:1565: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def297]
wavpack-5.8.1/src/pack.c:1576: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def298]
wavpack-5.8.1/src/pack.c:1580: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def299]
wavpack-5.8.1/src/pack.c:1594: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def300]
wavpack-5.8.1/src/pack.c:1597: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def301]
wavpack-5.8.1/src/pack.c:1608: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def302]
wavpack-5.8.1/src/pack.c:1611: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def303]
wavpack-5.8.1/src/pack.c:1625: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def304]
wavpack-5.8.1/src/pack.c:1629: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def305]
wavpack-5.8.1/src/pack.c:1695: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-682): [#def306]
wavpack-5.8.1/src/pack_dns.c:58: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
wavpack-5.8.1/src/pack_dns.c:160:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘output’
wavpack-5.8.1/src/pack_dns.c:138:21: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:143:17: branch_true: following ‘true’ branch (when ‘i < sample_count’)...
wavpack-5.8.1/src/pack_dns.c:144:13: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:160:9: danger: ‘output + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def308]
wavpack-5.8.1/src/pack_dns.c:163:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘output’
wavpack-5.8.1/src/pack_dns.c:143:17: branch_false: following ‘false’ branch (when ‘i >= sample_count’)...
wavpack-5.8.1/src/pack_dns.c:163:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:163:5: danger: use of uninitialized value ‘output’ here
Error: CPPCHECK_WARNING (CWE-476): [#def309]
wavpack-5.8.1/src/pack_dns.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: values
Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
wavpack-5.8.1/src/pack_dns.c:213:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘high_freq’
wavpack-5.8.1/src/pack_dns.c:190:8: branch_false: following ‘false’ branch (when ‘filtered_count > 0’)...
wavpack-5.8.1/src/pack_dns.c:193:16: branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:194:17: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:202:8: branch_true: following ‘true’ branch (when ‘num_chans == 1’)...
branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:203:21: branch_true: following ‘true’ branch (when ‘i < filtered_count’)...
wavpack-5.8.1/src/pack_dns.c:205:18: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:213:13: danger: ‘high_freq + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
wavpack-5.8.1/src/pack_dns.c:214:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘low_freq’
wavpack-5.8.1/src/pack_dns.c:190:8: branch_false: following ‘false’ branch (when ‘filtered_count > 0’)...
wavpack-5.8.1/src/pack_dns.c:193:16: branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:193:16: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:202:8: branch_true: following ‘true’ branch (when ‘num_chans == 1’)...
branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:203:21: branch_true: following ‘true’ branch (when ‘i < filtered_count’)...
wavpack-5.8.1/src/pack_dns.c:205:18: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:214:13: danger: ‘low_freq + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
wavpack-5.8.1/src/pack_dns.c:227:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘high_freq’
wavpack-5.8.1/src/pack_dns.c:190:8: branch_false: following ‘false’ branch (when ‘filtered_count > 0’)...
wavpack-5.8.1/src/pack_dns.c:193:16: branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:194:17: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:202:8: branch_false: following ‘false’ branch (when ‘num_chans != 1’)...
branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:217:21: branch_true: following ‘true’ branch (when ‘i < filtered_count’)...
wavpack-5.8.1/src/pack_dns.c:219:18: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:227:13: danger: ‘high_freq + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
wavpack-5.8.1/src/pack_dns.c:228:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘low_freq’
wavpack-5.8.1/src/pack_dns.c:190:8: branch_false: following ‘false’ branch (when ‘filtered_count > 0’)...
wavpack-5.8.1/src/pack_dns.c:193:16: branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:193:16: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:202:8: branch_false: following ‘false’ branch (when ‘num_chans != 1’)...
branch_false: ...to here
wavpack-5.8.1/src/pack_dns.c:217:21: branch_true: following ‘true’ branch (when ‘i < filtered_count’)...
wavpack-5.8.1/src/pack_dns.c:219:18: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:228:13: danger: ‘low_freq + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def314]
wavpack-5.8.1/src/pack_dns.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: low_freq
Error: CPPCHECK_WARNING (CWE-476): [#def315]
wavpack-5.8.1/src/pack_dns.c:240: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: low_freq
Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
wavpack-5.8.1/src/pack_dns.c:287:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘values’
wavpack-5.8.1/src/pack_dns.c:30:6: enter_function: entry to ‘dynamic_noise_shaping’
wavpack-5.8.1/src/pack_dns.c:46:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_dns.c:47:38: branch_true: ...to here
wavpack-5.8.1/src/pack_dns.c:50:29: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dns.c:57:9: call_function: calling ‘generate_dns_values’ from ‘dynamic_noise_shaping’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
wavpack-5.8.1/src/pack_dsd.c:200:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hist’
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:310:17: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def318]
wavpack-5.8.1/src/pack_dsd.c:205:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘probs’ where non-null expected
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:312:21: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def319]
wavpack-5.8.1/src/pack_dsd.c:206:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘prob_sums’ where non-null expected
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:313:28: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
wavpack-5.8.1/src/pack_dsd.c:237:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘prob_sums’
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:313:28: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
wavpack-5.8.1/src/pack_dsd.c:238:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘probs’
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:312:21: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
Error: CPPCHECK_WARNING (CWE-476): [#def322]
wavpack-5.8.1/src/pack_dsd.c:311: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histogram
Error: CPPCHECK_WARNING (CWE-476): [#def323]
wavpack-5.8.1/src/pack_dsd.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histogram
Error: CPPCHECK_WARNING (CWE-476): [#def324]
wavpack-5.8.1/src/pack_dsd.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: probabilities
Error: CPPCHECK_WARNING (CWE-476): [#def325]
wavpack-5.8.1/src/pack_dsd.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summed_probabilities
Error: CPPCHECK_WARNING (CWE-476): [#def326]
wavpack-5.8.1/src/pack_dsd.c:333: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summed_probabilities
Error: GCC_ANALYZER_WARNING (CWE-457): [#def327]
wavpack-5.8.1/src/pack_dsd.c:333:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>[255]’
wavpack-5.8.1/src/pack_dsd.c:269:12: enter_function: entry to ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:285:8: branch_false: following ‘false’ branch (when ‘num_samples > 279’)...
wavpack-5.8.1/src/pack_dsd.c:287:13: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_true: following ‘true’ branch (when ‘bc != 0’)...
wavpack-5.8.1/src/pack_dsd.c:319:20: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:318:16: branch_false: following ‘false’ branch (when ‘bc == 0’)...
wavpack-5.8.1/src/pack_dsd.c:331:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:331:18: branch_true: following ‘true’ branch (when ‘p0 < history_bins’)...
wavpack-5.8.1/src/pack_dsd.c:332:91: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:332:9: call_function: calling ‘calculate_probabilities’ from ‘encode_buffer_fast’
wavpack-5.8.1/src/pack_dsd.c:332:9: return_function: returning to ‘encode_buffer_fast’ from ‘calculate_probabilities’
wavpack-5.8.1/src/pack_dsd.c:333:39: danger: use of uninitialized value ‘*<unknown>[255]’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def328]
wavpack-5.8.1/src/pack_dsd.c:457:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘table’
wavpack-5.8.1/src/pack_dsd.c:494:12: enter_function: entry to ‘encode_buffer_high’
wavpack-5.8.1/src/pack_dsd.c:501:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_dsd.c:504:5: branch_false: ...to here
wavpack-5.8.1/src/pack_dsd.c:507:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_dsd.c:508:27: branch_true: ...to here
wavpack-5.8.1/src/pack_dsd.c:508:27: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_dsd.c:509:9: call_function: calling ‘init_ptable’ from ‘encode_buffer_high’
Error: CPPCHECK_WARNING (CWE-758): [#def329]
wavpack-5.8.1/src/pack_dsd.c:586: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def330]
wavpack-5.8.1/src/pack_dsd.c:620: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def331]
wavpack-5.8.1/src/pack_floats.c:48: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def332]
wavpack-5.8.1/src/pack_floats.c:105: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def333]
wavpack-5.8.1/src/pack_floats.c:130: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def334]
wavpack-5.8.1/src/pack_floats.c:250: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def335]
wavpack-5.8.1/src/pack_floats.c:256: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def336]
wavpack-5.8.1/src/pack_utils.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def337]
wavpack-5.8.1/src/pack_utils.c:403: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-682): [#def338]
wavpack-5.8.1/src/pack_utils.c:1143: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def339]
wavpack-5.8.1/src/pack_utils.c:1167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps_copy
Error: GCC_ANALYZER_WARNING (CWE-688): [#def340]
wavpack-5.8.1/src/pack_utils.c:1167:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘wps_copy’ where non-null expected
wavpack-5.8.1/src/pack_utils.c:1130:28: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1140:27: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1140:9: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1141:26: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1141:9: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1164:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1165:39: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_utils.c:1167:13: danger: argument 1 (‘wps_copy’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def341]
wavpack-5.8.1/src/pack_utils.c:1177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps_copy
Error: CPPCHECK_WARNING (CWE-476): [#def342]
wavpack-5.8.1/src/pack_utils.c:1178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps_copy
Error: GCC_ANALYZER_WARNING (CWE-688): [#def343]
wavpack-5.8.1/src/pack_utils.c:1191:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(1024)’ where non-null expected
wavpack-5.8.1/src/pack_utils.c:1130:28: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1140:27: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1140:9: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1141:26: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1141:9: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1164:17: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1174:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1177:64: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1180:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/pack_utils.c:1185:17: branch_false: ...to here
wavpack-5.8.1/src/pack_utils.c:1189:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1190:40: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1190:40: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_utils.c:1191:17: danger: argument 1 (‘malloc(1024)’) from [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def344]
wavpack-5.8.1/src/pack_utils.c:1514: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
wavpack-5.8.1/src/pack_utils.c:1515:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘block_buff’
wavpack-5.8.1/src/pack_utils.c:1500:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1502:26: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1504:16: branch_true: following ‘true’ branch (when ‘metacount != 0’)...
wavpack-5.8.1/src/pack_utils.c:1505:27: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1511:49: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_utils.c:1515:9: branch_true: following ‘true’ branch (when ‘tmp < 0’)...
wavpack-5.8.1/src/pack_utils.c:1515:9: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1515:9: danger: ‘block_buff’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def346]
wavpack-5.8.1/src/pack_utils.c:1516: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def347]
wavpack-5.8.1/src/pack_utils.c:1517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-476): [#def348]
wavpack-5.8.1/src/pack_utils.c:1518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wphdr
Error: CPPCHECK_WARNING (CWE-682): [#def349]
wavpack-5.8.1/src/pack_utils.c:1520: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def350]
wavpack-5.8.1/src/pack_utils.c:1749: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
wavpack-5.8.1/src/pack_utils.c:1849:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*wpc.workers’
wavpack-5.8.1/src/pack_utils.c:1840:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1843:9: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1846:24: acquire_memory: this call could return NULL
wavpack-5.8.1/src/pack_utils.c:1848:21: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/pack_utils.c:1849:13: branch_true: ...to here
wavpack-5.8.1/src/pack_utils.c:1849:13: danger: ‘*wpc.workers + (long unsigned int)i * 128’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-758): [#def352]
wavpack-5.8.1/src/unpack.c:250: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def353]
wavpack-5.8.1/src/unpack.c:366: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def354]
wavpack-5.8.1/src/unpack.c:367: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def355]
wavpack-5.8.1/src/unpack.c:374: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def356]
wavpack-5.8.1/src/unpack.c:377: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def357]
wavpack-5.8.1/src/unpack.c:382: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def358]
wavpack-5.8.1/src/unpack.c:391: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def359]
wavpack-5.8.1/src/unpack.c:536: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def360]
wavpack-5.8.1/src/unpack.c:547: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def361]
wavpack-5.8.1/src/unpack.c:557: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def362]
wavpack-5.8.1/src/unpack.c:598: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def363]
wavpack-5.8.1/src/unpack.c:603: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def364]
wavpack-5.8.1/src/unpack.c:615: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def365]
wavpack-5.8.1/src/unpack.c:620: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def366]
wavpack-5.8.1/src/unpack.c:631: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def367]
wavpack-5.8.1/src/unpack.c:636: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def368]
wavpack-5.8.1/src/unpack.c:650: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def369]
wavpack-5.8.1/src/unpack.c:653: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def370]
wavpack-5.8.1/src/unpack.c:664: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def371]
wavpack-5.8.1/src/unpack.c:667: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def372]
wavpack-5.8.1/src/unpack.c:678: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def373]
wavpack-5.8.1/src/unpack.c:680: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def374]
wavpack-5.8.1/src/unpack_dsd.c:176:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘outptr’
wavpack-5.8.1/src/unpack_dsd.c:146:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:149:21: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:151:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:161:54: acquire_memory: this call could return NULL
wavpack-5.8.1/src/unpack_dsd.c:165:8: branch_true: following ‘true’ branch (when ‘max_probability != 255’)...
wavpack-5.8.1/src/unpack_dsd.c:167:24: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:169:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_dsd.c:172:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_dsd.c:173:30: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:175:24: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_dsd.c:176:21: danger: ‘outptr’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def375]
wavpack-5.8.1/src/unpack_dsd.c:179:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘outptr’
wavpack-5.8.1/src/unpack_dsd.c:146:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:149:21: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:151:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:161:54: acquire_memory: this call could return NULL
wavpack-5.8.1/src/unpack_dsd.c:165:8: branch_true: following ‘true’ branch (when ‘max_probability != 255’)...
wavpack-5.8.1/src/unpack_dsd.c:167:24: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:169:16: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_dsd.c:172:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:178:21: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:178:21: branch_true: following ‘true’ branch (when ‘code != 0’)...
wavpack-5.8.1/src/unpack_dsd.c:179:18: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:179:17: danger: ‘outptr’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def376]
wavpack-5.8.1/src/unpack_dsd.c:198:68: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>[i]’
wavpack-5.8.1/src/unpack_dsd.c:146:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:149:21: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:151:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:165:8: branch_true: following ‘true’ branch (when ‘max_probability != 255’)...
wavpack-5.8.1/src/unpack_dsd.c:167:24: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:184:12: branch_false: following ‘false’ branch (when ‘outptr >= outend’)...
wavpack-5.8.1/src/unpack_dsd.c:184:33: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:194:18: branch_true: following ‘true’ branch...
branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:197:34: branch_true: following ‘true’ branch (when ‘i != 256’)...
wavpack-5.8.1/src/unpack_dsd.c:198:68: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:198:68: danger: use of uninitialized value ‘*<unknown>[i]’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def377]
wavpack-5.8.1/src/unpack_dsd.c:308:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘table’
wavpack-5.8.1/src/unpack_dsd.c:320:12: enter_function: entry to ‘init_dsd_block_high’
wavpack-5.8.1/src/unpack_dsd.c:325:8: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_dsd.c:328:15: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:331:8: branch_false: following ‘false’ branch (when ‘rate_s == 20’)...
wavpack-5.8.1/src/unpack_dsd.c:334:10: branch_false: ...to here
wavpack-5.8.1/src/unpack_dsd.c:334:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_dsd.c:335:38: branch_true: ...to here
wavpack-5.8.1/src/unpack_dsd.c:335:38: acquire_memory: this call could return NULL
wavpack-5.8.1/src/unpack_dsd.c:337:5: call_function: calling ‘init_ptable’ from ‘init_dsd_block_high’
Error: CPPCHECK_WARNING (CWE-758): [#def378]
wavpack-5.8.1/src/unpack_dsd.c:400: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def379]
wavpack-5.8.1/src/unpack_dsd.c:435: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def380]
wavpack-5.8.1/src/unpack_floats.c:104: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def381]
wavpack-5.8.1/src/unpack_seek.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def382]
wavpack-5.8.1/src/unpack_seek.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def383]
wavpack-5.8.1/src/unpack_seek.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def384]
wavpack-5.8.1/src/unpack_seek.c:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def385]
wavpack-5.8.1/src/unpack_seek.c:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: CPPCHECK_WARNING (CWE-476): [#def386]
wavpack-5.8.1/src/unpack_seek.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: GCC_ANALYZER_WARNING (CWE-476): [#def387]
wavpack-5.8.1/src/unpack_utils.c:68:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
wavpack-5.8.1/src/unpack_utils.c:488:14: enter_function: entry to ‘unpack_samples_worker_thread’
wavpack-5.8.1/src/unpack_utils.c:501:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:504:9: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:506:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:509:13: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:513:9: call_function: calling ‘unpack_samples_interleave’ from ‘unpack_samples_worker_thread’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def388]
wavpack-5.8.1/src/unpack_utils.c:77:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
wavpack-5.8.1/src/unpack_utils.c:488:14: enter_function: entry to ‘unpack_samples_worker_thread’
wavpack-5.8.1/src/unpack_utils.c:501:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:504:9: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:506:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:509:13: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:513:9: call_function: calling ‘unpack_samples_interleave’ from ‘unpack_samples_worker_thread’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def389]
wavpack-5.8.1/src/unpack_utils.c:87:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
wavpack-5.8.1/src/unpack_utils.c:488:14: enter_function: entry to ‘unpack_samples_worker_thread’
wavpack-5.8.1/src/unpack_utils.c:501:16: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:504:9: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:506:12: branch_false: following ‘false’ branch...
wavpack-5.8.1/src/unpack_utils.c:509:13: branch_false: ...to here
wavpack-5.8.1/src/unpack_utils.c:513:9: call_function: calling ‘unpack_samples_interleave’ from ‘unpack_samples_worker_thread’
Error: CPPCHECK_WARNING (CWE-476): [#def390]
wavpack-5.8.1/src/unpack_utils.c:416: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps_copy
Error: CPPCHECK_WARNING (CWE-401): [#def391]
wavpack-5.8.1/src/unpack_utils.c:510: error[memleakOnRealloc]: Common realloc mistake: 'temp_buffer' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def392]
wavpack-5.8.1/src/unpack_utils.c:539: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wps
Error: GCC_ANALYZER_WARNING (CWE-476): [#def393]
wavpack-5.8.1/src/unpack_utils.c:594:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*wpc.workers’
wavpack-5.8.1/src/unpack_utils.c:585:8: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_utils.c:588:9: branch_true: ...to here
wavpack-5.8.1/src/unpack_utils.c:591:24: acquire_memory: this call could return NULL
wavpack-5.8.1/src/unpack_utils.c:593:21: branch_true: following ‘true’ branch...
wavpack-5.8.1/src/unpack_utils.c:594:13: branch_true: ...to here
wavpack-5.8.1/src/unpack_utils.c:594:13: danger: ‘*wpc.workers + (long unsigned int)i * 128’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-682): [#def394]
wavpack-5.8.1/src/write_words.c:107: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def395]
wavpack-5.8.1/src/write_words.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Error: CPPCHECK_WARNING (CWE-682): [#def396]
wavpack-5.8.1/src/write_words.c:153: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def397]
wavpack-5.8.1/src/write_words.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: byteptr++
Scan Properties
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-110.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 | wavpack-5.8.1-1.fc43 |
store-results-to | /tmp/tmp6modq3n6/wavpack-5.8.1-1.fc43.tar.xz |
time-created | 2025-04-25 15:57:07 |
time-finished | 2025-04-25 15:59:17 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp6modq3n6/wavpack-5.8.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp6modq3n6/wavpack-5.8.1-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |