codec2-1.2.0-9.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
codec2-1.2.0/demo/c2demo.c:53:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb")’
codec2-1.2.0/demo/c2demo.c:43:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
codec2-1.2.0/demo/c2demo.c:48:14: branch_false: ...to here
codec2-1.2.0/demo/c2demo.c:48:14: acquire_resource: opened here
codec2-1.2.0/demo/c2demo.c:48:6: branch_false: following ‘false’ branch...
codec2-1.2.0/demo/c2demo.c:53:15: branch_false: ...to here
codec2-1.2.0/demo/c2demo.c:53:15: danger: ‘fopen(argv[1], "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
codec2-1.2.0/demo/c2demo.c:53:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb")’
codec2-1.2.0/demo/c2demo.c:43:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
codec2-1.2.0/demo/c2demo.c:48:14: branch_false: ...to here
codec2-1.2.0/demo/c2demo.c:48:14: acquire_memory: allocated here
codec2-1.2.0/demo/c2demo.c:48:6: branch_false: following ‘false’ branch...
codec2-1.2.0/demo/c2demo.c:53:15: branch_false: ...to here
codec2-1.2.0/demo/c2demo.c:53:15: danger: ‘fopen(argv[1], "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-563): [#def3]
codec2-1.2.0/src/c2dec.c: scope_hint: In function ‘main’
codec2-1.2.0/src/c2dec.c:112:9: warning[-Wunused-variable]: unused variable ‘nread’
Error: CPPCHECK_WARNING (CWE-457): [#def4]
codec2-1.2.0/src/c2dec.c:271: error[uninitvar]: Uninitialized variable: state
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
codec2-1.2.0/src/c2dec.c:320:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘bits’ where non-null expected
codec2-1.2.0/src/c2dec.c:90:6: branch_false: following ‘false’ branch (when ‘argc > 3’)...
codec2-1.2.0/src/c2dec.c:92:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:92:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2dec.c:93:5: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:100:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2dec.c:101:5: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:111:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:168:27: acquire_memory: this call could return NULL
codec2-1.2.0/src/c2dec.c:236:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:237:12: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:239:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2dec.c:242:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:242:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2dec.c:242:6: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:246:10: branch_true: following ‘true’ branch (when ‘ret != 0’)...
codec2-1.2.0/src/c2dec.c:250:8: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:250:8: branch_false: following ‘false’ branch (when ‘error_mode != 1’)...
codec2-1.2.0/src/c2dec.c:306:8: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:306:8: branch_false: following ‘false’ branch (when ‘fber’ is NULL)...
codec2-1.2.0/src/c2dec.c:313:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:315:8: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:320:7: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:320:7: danger: argument 1 (‘bits’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
codec2-1.2.0/src/c2dec.c:322:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘softdec_bits’
codec2-1.2.0/src/c2dec.c:90:6: branch_false: following ‘false’ branch (when ‘argc > 3’)...
codec2-1.2.0/src/c2dec.c:92:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:92:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2dec.c:93:5: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:100:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2dec.c:101:5: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:111:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:169:27: acquire_memory: this call could return NULL
codec2-1.2.0/src/c2dec.c:236:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:237:12: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:239:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2dec.c:242:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:242:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2dec.c:242:6: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:246:10: branch_true: following ‘true’ branch (when ‘ret != 0’)...
codec2-1.2.0/src/c2dec.c:250:8: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:250:8: branch_false: following ‘false’ branch (when ‘error_mode != 1’)...
codec2-1.2.0/src/c2dec.c:306:8: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:306:8: branch_false: following ‘false’ branch (when ‘fber’ is NULL)...
codec2-1.2.0/src/c2dec.c:313:7: branch_false: ...to here
codec2-1.2.0/src/c2dec.c:315:8: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:320:7: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:321:19: branch_true: following ‘true’ branch...
codec2-1.2.0/src/c2dec.c:322:9: branch_true: ...to here
codec2-1.2.0/src/c2dec.c:322:25: danger: ‘softdec_bits + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
codec2-1.2.0/src/c2sim.c:312:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&file_name, "rb")’
codec2-1.2.0/src/c2sim.c:179:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/c2sim.c:179:6: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:186:8: branch_false: following ‘false’ branch (when ‘opt != -1’)...
codec2-1.2.0/src/c2sim.c:187:5: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:189:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:195:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:195:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:201:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:202:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:203:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:205:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:208:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:217:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:217:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:226:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:226:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:233:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:233:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:237:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:237:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:256:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:256:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:263:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:263:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:269:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:269:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:275:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:275:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:281:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:281:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:287:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:287:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:294:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:294:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:296:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:296:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:299:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:299:19: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2sim.c:303:49: branch_true: ...to here
codec2-1.2.0/src/c2sim.c:307:22: acquire_resource: opened here
codec2-1.2.0/src/c2sim.c:307:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:312:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:312:11: danger: ‘fopen(&file_name, "rb")’ leaks here; was opened at [(43)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/42)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
codec2-1.2.0/src/c2sim.c:312:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&file_name, "rb")’
codec2-1.2.0/src/c2sim.c:179:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/c2sim.c:179:6: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:186:8: branch_false: following ‘false’ branch (when ‘opt != -1’)...
codec2-1.2.0/src/c2sim.c:187:5: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:189:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:195:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:195:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:201:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:202:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:203:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:205:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:208:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:217:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:217:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:226:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:226:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:233:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:233:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:237:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:237:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:256:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:256:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:263:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:263:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:269:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:269:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:275:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:275:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:281:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:281:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:287:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:287:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:294:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:294:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:296:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:296:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:299:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:299:19: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2sim.c:303:49: branch_true: ...to here
codec2-1.2.0/src/c2sim.c:307:22: acquire_memory: allocated here
codec2-1.2.0/src/c2sim.c:307:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:312:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:312:11: danger: ‘fopen(&file_name, "rb")’ leaks here; was allocated at [(43)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/42)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
codec2-1.2.0/src/c2sim.c:319:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&file_name, "rb")’
codec2-1.2.0/src/c2sim.c:179:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/c2sim.c:179:6: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:186:8: branch_false: following ‘false’ branch (when ‘opt != -1’)...
codec2-1.2.0/src/c2sim.c:187:5: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:189:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:195:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:195:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:201:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:202:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:203:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:205:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:208:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:217:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:217:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:226:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:226:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:233:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:233:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:237:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:237:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:256:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:256:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:263:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:263:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:269:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:269:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:275:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:275:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:281:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:281:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:287:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:287:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:294:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:294:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:296:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:296:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:299:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:299:19: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2sim.c:303:49: branch_true: ...to here
codec2-1.2.0/src/c2sim.c:307:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:312:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:314:22: acquire_resource: opened here
codec2-1.2.0/src/c2sim.c:314:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:319:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:319:11: danger: ‘fopen(&file_name, "rb")’ leaks here; was opened at [(45)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/44)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
codec2-1.2.0/src/c2sim.c:319:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&file_name, "rb")’
codec2-1.2.0/src/c2sim.c:179:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/c2sim.c:179:6: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:186:8: branch_false: following ‘false’ branch (when ‘opt != -1’)...
codec2-1.2.0/src/c2sim.c:187:5: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:189:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:195:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:195:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:201:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:202:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:203:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:201:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:205:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:208:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:217:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:217:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:226:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:226:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:233:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:233:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:237:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:237:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:256:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:256:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:263:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:263:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:269:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:269:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:275:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:275:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:281:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:281:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:287:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:287:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:294:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:294:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:296:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:296:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/c2sim.c:299:20: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:299:19: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/c2sim.c:303:49: branch_true: ...to here
codec2-1.2.0/src/c2sim.c:307:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:312:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:314:22: acquire_memory: allocated here
codec2-1.2.0/src/c2sim.c:314:14: branch_false: following ‘false’ branch...
codec2-1.2.0/src/c2sim.c:319:11: branch_false: ...to here
codec2-1.2.0/src/c2sim.c:319:11: danger: ‘fopen(&file_name, "rb")’ leaks here; was allocated at [(45)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/44)
Error: CPPCHECK_WARNING (CWE-457): [#def11]
codec2-1.2.0/src/c2sim.c:671: warning[uninitvar]: Uninitialized variable: buf
Error: COMPILER_WARNING (CWE-563): [#def12]
codec2-1.2.0/src/c2sim.c: scope_hint: In function ‘main’
codec2-1.2.0/src/c2sim.c:706:13: warning[-Wunused-variable]: unused variable ‘ret’
Error: COMPILER_WARNING (CWE-563): [#def13]
codec2-1.2.0/src/c2sim.c:789:11: warning[-Wunused-variable]: unused variable ‘ret’
Error: COMPILER_WARNING (CWE-563): [#def14]
codec2-1.2.0/src/c2sim.c:794:11: warning[-Wunused-variable]: unused variable ‘ret’
Error: COMPILER_WARNING (CWE-563): [#def15]
codec2-1.2.0/src/c2sim.c:1051:17: warning[-Wunused-variable]: unused variable ‘ret’
Error: COMPILER_WARNING (CWE-563): [#def16]
codec2-1.2.0/src/c2sim.c:1058:17: warning[-Wunused-variable]: unused variable ‘ret’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
codec2-1.2.0/src/codec2.c:272:1: warning[-Wanalyzer-malloc-leak]: leak of ‘c2’
codec2-1.2.0/src/codec2.c:116:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/codec2.c:126:25: branch_true: ...to here
codec2-1.2.0/src/codec2.c:126:25: acquire_memory: allocated here
codec2-1.2.0/src/codec2.c:127:6: branch_false: following ‘false’ branch (when ‘c2’ is non-NULL)...
codec2-1.2.0/src/codec2.c:129:3: branch_false: ...to here
codec2-1.2.0/src/codec2.c:139:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/codec2.c:139:6: branch_true: ...to here
codec2-1.2.0/src/codec2.c:272:1: danger: ‘c2’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-563): [#def18]
codec2-1.2.0/src/codec2.c: scope_hint: In function ‘codec2_load_codebook’
codec2-1.2.0/src/codec2.c:1888:7: warning[-Wunused-variable]: unused variable ‘nread’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
codec2-1.2.0/src/codec2_fifo.c:59:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fifo’
codec2-1.2.0/src/codec2_fifo.c:56:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/codec2_fifo.c:59:3: danger: ‘fifo’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-416): [#def20]
codec2-1.2.0/src/debug_alloc.h:54: error[deallocuse]: Dereferencing 'ptr' after it is deallocated / released
Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
codec2-1.2.0/src/deframer.c:100:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘inbuf’ where non-null expected
codec2-1.2.0/src/deframer.c:45:6: branch_false: following ‘false’ branch (when ‘argc > 4’)...
codec2-1.2.0/src/deframer.c:56:7: branch_false: ...to here
codec2-1.2.0/src/deframer.c:56:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/deframer.c:57:5: branch_true: ...to here
codec2-1.2.0/src/deframer.c:65:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/deframer.c:66:5: branch_true: ...to here
codec2-1.2.0/src/deframer.c:86:19: branch_false: following ‘false’ branch (when ‘uwsize <= i’)...
codec2-1.2.0/src/deframer.c:87:3: branch_false: ...to here
codec2-1.2.0/src/deframer.c:98:20: acquire_memory: this call could return NULL
codec2-1.2.0/src/deframer.c:100:3: danger: argument 1 (‘inbuf’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
codec2-1.2.0/src/fdmdv.c:88:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)(Nc * 8) * 4)’
codec2-1.2.0/src/fdmdv.c:80:6: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
codec2-1.2.0/src/fdmdv.c:82:3: branch_false: ...to here
codec2-1.2.0/src/fdmdv.c:86:32: acquire_memory: this call could return NULL
codec2-1.2.0/src/fdmdv.c:88:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fdmdv.c:88:58: branch_true: ...to here
codec2-1.2.0/src/fdmdv.c:88:39: danger: ‘malloc((long unsigned int)(Nc * 8) * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
codec2-1.2.0/src/fdmdv.c:809:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pilot[i].real’
codec2-1.2.0/src/fdmdv.c:1586:6: enter_function: entry to ‘fdmdv_demod’
codec2-1.2.0/src/fdmdv.c:1609:17: call_function: calling ‘rx_est_freq_offset’ from ‘fdmdv_demod’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
codec2-1.2.0/src/fdmdv.c:1021:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*inpCmplx’
codec2-1.2.0/src/fdmdv.c:1100:6: enter_function: entry to ‘down_convert_and_rx_filter’
codec2-1.2.0/src/fdmdv.c:1124:15: branch_true: following ‘true’ branch (when ‘c <= Nc’)...
codec2-1.2.0/src/fdmdv.c:1147:31: branch_true: ...to here
codec2-1.2.0/src/fdmdv.c:1164:18: branch_false: following ‘false’ branch (when ‘i > 1159’)...
codec2-1.2.0/src/fdmdv.c:1164:18: branch_false: ...to here
codec2-1.2.0/src/fdmdv.c:1185:7: call_function: calling ‘fir_filter2’ from ‘down_convert_and_rx_filter’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
codec2-1.2.0/src/fdmdv.c:1064:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*inpCmplx’
codec2-1.2.0/src/fdmdv.c:1100:6: enter_function: entry to ‘down_convert_and_rx_filter’
codec2-1.2.0/src/fdmdv.c:1124:15: branch_true: following ‘true’ branch (when ‘c <= Nc’)...
codec2-1.2.0/src/fdmdv.c:1147:31: branch_true: ...to here
codec2-1.2.0/src/fdmdv.c:1164:18: branch_false: following ‘false’ branch (when ‘i > 1159’)...
codec2-1.2.0/src/fdmdv.c:1164:18: branch_false: ...to here
codec2-1.2.0/src/fdmdv.c:1185:7: call_function: calling ‘fir_filter2’ from ‘down_convert_and_rx_filter’
Error: CPPCHECK_WARNING (CWE-786): [#def26]
codec2-1.2.0/src/fdmdv.c:1763: error[negativeIndex]: Array 'in8k[0]' accessed at index -24, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def27]
codec2-1.2.0/src/fdmdv.c:1788: error[negativeIndex]: Array 'in8k[0]' accessed at index -24, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def28]
codec2-1.2.0/src/fdmdv.c:1821: error[negativeIndex]: Array 'in16k[0]' accessed at index -48, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def29]
codec2-1.2.0/src/fdmdv.c:1837: error[negativeIndex]: Array 'in16k[0]' accessed at index -48, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def30]
codec2-1.2.0/src/fdmdv.c:1868: error[negativeIndex]: Array 'in8k[0]' accessed at index -8, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def31]
codec2-1.2.0/src/fdmdv.c:1886: error[negativeIndex]: Array 'in8k[0]' accessed at index -8, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def32]
codec2-1.2.0/src/fdmdv.c:1910: error[negativeIndex]: Array 'in48k[0]' accessed at index -47, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def33]
codec2-1.2.0/src/fdmdv.c:1916: error[negativeIndex]: Array 'in48k[0]' accessed at index -48, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def34]
codec2-1.2.0/src/fdmdv.c:1926: error[negativeIndex]: Array 'in48k[0]' accessed at index -47, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def35]
codec2-1.2.0/src/fdmdv.c:1933: error[negativeIndex]: Array 'in48k[0]' accessed at index -48, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-476): [#def36]
codec2-1.2.0/src/fdmdv_demod.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rx_symbols_log
Error: GCC_ANALYZER_WARNING (CWE-688): [#def37]
codec2-1.2.0/src/fdmdv_get_test_bits.c:100:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘packed_bits’ where non-null expected
codec2-1.2.0/src/fdmdv_get_test_bits.c:49:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/fdmdv_get_test_bits.c:55:7: branch_false: ...to here
codec2-1.2.0/src/fdmdv_get_test_bits.c:55:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fdmdv_get_test_bits.c:56:5: branch_true: ...to here
codec2-1.2.0/src/fdmdv_get_test_bits.c:85:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/fdmdv_get_test_bits.c:92:15: branch_true: following ‘true’ branch (when ‘n < nCodecFrames’)...
codec2-1.2.0/src/fdmdv_get_test_bits.c:93:5: branch_true: ...to here
codec2-1.2.0/src/fdmdv_get_test_bits.c:100:5: danger: argument 1 (‘packed_bits’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rx_bits’
codec2-1.2.0/src/fdmdv_put_test_bits.c:52:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:58:7: branch_false: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:58:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:59:5: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:88:20: acquire_memory: this call could return NULL
codec2-1.2.0/src/fdmdv_put_test_bits.c:100:10: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fdmdv_put_test_bits.c:100:10: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:106:17: branch_true: following ‘true’ branch (when ‘i < bits_per_codec_frame’)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:32: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:7: danger: ‘rx_bits + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘packed_bits’
codec2-1.2.0/src/fdmdv_put_test_bits.c:52:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:58:7: branch_false: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:58:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:59:5: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:86:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/fdmdv_put_test_bits.c:100:10: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fdmdv_put_test_bits.c:100:10: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:106:17: branch_true: following ‘true’ branch (when ‘i < bits_per_codec_frame’)...
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:32: branch_true: ...to here
codec2-1.2.0/src/fdmdv_put_test_bits.c:107:21: danger: ‘packed_bits + (sizetype)byte’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
codec2-1.2.0/src/filter.c:53:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*filter.cSamples’ where non-null expected
codec2-1.2.0/src/filter.c:52:39: acquire_memory: this call could return NULL
codec2-1.2.0/src/filter.c:53:3: danger: argument 1 (‘malloc((long unsigned int)taps * 8)’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
codec2-1.2.0/src/filter.c:122:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*filter.cBuf’ where non-null expected
codec2-1.2.0/src/filter.c:113:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/filter.c:114:20: branch_true: ...to here
codec2-1.2.0/src/filter.c:119:26: acquire_memory: this call could return NULL
codec2-1.2.0/src/filter.c:122:3: danger: argument 1 (‘*filter.cBuf’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def42]
codec2-1.2.0/src/fmfsk.c:204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rx_filt
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
codec2-1.2.0/src/fmfsk.c:204:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rx_filt’
codec2-1.2.0/src/fmfsk.c:195:20: acquire_memory: this call could return NULL
codec2-1.2.0/src/fmfsk.c:198:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fmfsk.c:198:15: branch_true: ...to here
codec2-1.2.0/src/fmfsk.c:201:17: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fmfsk.c:204:12: branch_false: ...to here
codec2-1.2.0/src/fmfsk.c:204:5: danger: ‘rx_filt + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def44]
codec2-1.2.0/src/fmfsk.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rx_filt
Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
codec2-1.2.0/src/fmfsk.c:271:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
codec2-1.2.0/src/fmfsk.c:198:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fmfsk.c:219:34: branch_false: ...to here
codec2-1.2.0/src/fmfsk.c:225:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fmfsk.c:238:20: branch_false: ...to here
codec2-1.2.0/src/fmfsk.c:248:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fmfsk.c:254:19: branch_false: ...to here
codec2-1.2.0/src/fmfsk.c:269:15: branch_true: following ‘true’ branch (when ‘i < nsym’)...
codec2-1.2.0/src/fmfsk.c:271:37: branch_true: ...to here
codec2-1.2.0/src/fmfsk.c:271:13: danger: use of uninitialized value ‘*<unknown>’ here
Error: CPPCHECK_WARNING (CWE-457): [#def46]
codec2-1.2.0/src/framer.c:91: warning[uninitvar]: Uninitialized variable: uw
Error: GCC_ANALYZER_WARNING (CWE-457): [#def47]
codec2-1.2.0/src/freedv_2020.c:83:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vq_type’
codec2-1.2.0/src/freedv_2020.c:81:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/freedv_2020.c:82:5: branch_true: ...to here
codec2-1.2.0/src/freedv_2020.c:83:5: danger: use of uninitialized value ‘vq_type’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
codec2-1.2.0/src/freedv_2020.c:105:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.codeword_symbols’
codec2-1.2.0/src/freedv_2020.c:81:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_2020.c:98:33: branch_false: ...to here
codec2-1.2.0/src/freedv_2020.c:98:33: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_2020.c:104:19: branch_true: following ‘true’ branch (when ‘i < coded_syms_per_frame’)...
codec2-1.2.0/src/freedv_2020.c:105:24: branch_true: ...to here
codec2-1.2.0/src/freedv_2020.c:105:5: danger: ‘malloc((long unsigned int)coded_syms_per_frame * 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
codec2-1.2.0/src/freedv_2020.c:107:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.codeword_amps’
codec2-1.2.0/src/freedv_2020.c:81:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_2020.c:98:33: branch_false: ...to here
codec2-1.2.0/src/freedv_2020.c:101:31: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_2020.c:104:19: branch_true: following ‘true’ branch (when ‘i < coded_syms_per_frame’)...
codec2-1.2.0/src/freedv_2020.c:105:24: branch_true: ...to here
codec2-1.2.0/src/freedv_2020.c:107:5: danger: ‘malloc((long unsigned int)coded_syms_per_frame * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-563): [#def50]
codec2-1.2.0/src/freedv_2020.c: scope_hint: In function ‘freedv_2020x_open’
codec2-1.2.0/src/freedv_2020.c:127:7: warning[-Wunused-variable]: unused variable ‘nout_max’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def51]
codec2-1.2.0/src/freedv_2020.c:130:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vq_type’
codec2-1.2.0/src/freedv_2020.c:81:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_2020.c:98:33: branch_false: ...to here
codec2-1.2.0/src/freedv_2020.c:104:19: branch_false: following ‘false’ branch (when ‘i >= coded_syms_per_frame’)...
codec2-1.2.0/src/freedv_2020.c:110:26: branch_false: ...to here
codec2-1.2.0/src/freedv_2020.c:130:15: danger: use of uninitialized value ‘vq_type’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
codec2-1.2.0/src/freedv_700.c:148:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.rx_syms’
codec2-1.2.0/src/freedv_700.c:143:24: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_700.c:147:19: branch_true: following ‘true’ branch (when ‘i < Nsymsperpacket’)...
codec2-1.2.0/src/freedv_700.c:148:36: branch_true: ...to here
codec2-1.2.0/src/freedv_700.c:148:26: danger: ‘malloc((long unsigned int)Nsymsperpacket * 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
codec2-1.2.0/src/freedv_700.c:149:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.rx_amps’
codec2-1.2.0/src/freedv_700.c:145:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_700.c:147:19: branch_true: following ‘true’ branch (when ‘i < Nsymsperpacket’)...
codec2-1.2.0/src/freedv_700.c:148:36: branch_true: ...to here
codec2-1.2.0/src/freedv_700.c:149:5: danger: ‘malloc((long unsigned int)Nsymsperpacket * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
codec2-1.2.0/src/freedv_700.c:233:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.rx_syms’
codec2-1.2.0/src/freedv_700.c:228:24: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_700.c:232:19: branch_true: following ‘true’ branch (when ‘i < Nsymsperpacket’)...
codec2-1.2.0/src/freedv_700.c:233:36: branch_true: ...to here
codec2-1.2.0/src/freedv_700.c:233:26: danger: ‘malloc((long unsigned int)Nsymsperpacket * 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
codec2-1.2.0/src/freedv_700.c:234:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.rx_amps’
codec2-1.2.0/src/freedv_700.c:230:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_700.c:232:19: branch_true: following ‘true’ branch (when ‘i < Nsymsperpacket’)...
codec2-1.2.0/src/freedv_700.c:233:36: branch_true: ...to here
codec2-1.2.0/src/freedv_700.c:234:5: danger: ‘malloc((long unsigned int)Nsymsperpacket * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-415): [#def56]
codec2-1.2.0/src/freedv_api.c:207: error[doubleFree]: Memory pointed to by 'ldpc' is freed twice.
Error: CPPCHECK_WARNING (CWE-415): [#def57]
codec2-1.2.0/src/freedv_api.c:228: error[doubleFree]: Memory pointed to by 'ldpc' is freed twice.
Error: CPPCHECK_WARNING (CWE-415): [#def58]
codec2-1.2.0/src/freedv_api.c:239: error[doubleFree]: Memory pointed to by 'rx_syms' is freed twice.
Error: CPPCHECK_WARNING (CWE-415): [#def59]
codec2-1.2.0/src/freedv_api.c:240: error[doubleFree]: Memory pointed to by 'rx_amps' is freed twice.
Error: CPPCHECK_WARNING (CWE-415): [#def60]
codec2-1.2.0/src/freedv_api.c:241: error[doubleFree]: Memory pointed to by 'ldpc' is freed twice.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def61]
codec2-1.2.0/src/freedv_api.c:917:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
codec2-1.2.0/src/freedv_api.c:788:5: enter_function: entry to ‘freedv_comprx’
codec2-1.2.0/src/freedv_api.c:794:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:797:7: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:797:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:801:8: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:801:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:807:7: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:807:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:813:7: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:813:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:820:24: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:822:19: branch_false: following ‘false’ branch...
codec2-1.2.0/src/freedv_api.c:824:10: branch_false: ...to here
codec2-1.2.0/src/freedv_api.c:824:10: call_function: calling ‘freedv_bits_to_speech’ from ‘freedv_comprx’
Error: CPPCHECK_WARNING (CWE-457): [#def62]
codec2-1.2.0/src/freedv_data_raw_tx.c:504: warning[uninitvar]: Uninitialized variable: sil_short
Error: GCC_ANALYZER_WARNING (CWE-465): [#def63]
codec2-1.2.0/src/freedv_data_rx.c:96:6: warning[-Wanalyzer-deref-before-check]: check of ‘((struct my_callback_state)*(void *)callback_state).fdataout’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-131): [#def64]
codec2-1.2.0/src/freedv_fsk.c:44:3: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-131): [#def65]
codec2-1.2.0/src/freedv_fsk.c:78:3: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-131): [#def66]
codec2-1.2.0/src/freedv_fsk.c:107:3: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: COMPILER_WARNING (CWE-563): [#def67]
codec2-1.2.0/src/freedv_fsk.c: scope_hint: In function ‘freedv_fsk_ldpc_open’
codec2-1.2.0/src/freedv_fsk.c:152:7: warning[-Wunused-variable]: unused variable ‘code_index’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
codec2-1.2.0/src/freedv_fsk.c:188:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*f.twoframes_hard’ where non-null expected
codec2-1.2.0/src/freedv_fsk.c:186:23: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_fsk.c:188:3: danger: argument 1 (‘malloc((long unsigned int)(bits_per_frame * 2))’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
codec2-1.2.0/src/freedv_fsk.c:191:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*f.twoframes_llr’
codec2-1.2.0/src/freedv_fsk.c:189:31: acquire_memory: this call could return NULL
codec2-1.2.0/src/freedv_fsk.c:191:19: branch_true: following ‘true’ branch...
codec2-1.2.0/src/freedv_fsk.c:191:64: branch_true: ...to here
codec2-1.2.0/src/freedv_fsk.c:191:48: danger: ‘malloc((long unsigned int)(bits_per_frame * 2) * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
codec2-1.2.0/src/fsk.c:93:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*fsk.hann_table + i * 4’
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
codec2-1.2.0/src/fsk.c:140:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fsk’
codec2-1.2.0/src/fsk.c:131:23: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk.c:140:3: danger: ‘fsk’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
codec2-1.2.0/src/fsk.c:169:54: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)((Fs / Rs * Nsym + <unknown> * 2) * M) * 8)’
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: GCC_ANALYZER_WARNING: [#def73]
codec2-1.2.0/src/fsk.c:173:22: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
codec2-1.2.0/src/fsk.c:175:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)(int)Ndft * 4)’
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: GCC_ANALYZER_WARNING: [#def75]
codec2-1.2.0/src/fsk.c:179:30: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: CPPCHECK_WARNING (CWE-476): [#def76]
codec2-1.2.0/src/fsk.c:501: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fftin
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
codec2-1.2.0/src/fsk.c:501:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fftin’
codec2-1.2.0/src/fsk.c:476:41: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk.c:491:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk.c:492:13: branch_true: ...to here
codec2-1.2.0/src/fsk.c:495:17: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk.c:497:14: branch_true: ...to here
codec2-1.2.0/src/fsk.c:501:7: danger: ‘fftin + i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def78]
codec2-1.2.0/src/fsk.c:502: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fftin
Error: COMPILER_WARNING (CWE-457): [#def79]
codec2-1.2.0/src/fsk.c: scope_hint: In function ‘fsk_demod_freq_est’
codec2-1.2.0/src/fsk.c:506:5: warning[-Wmaybe-uninitialized]: ‘fftin_167’ may be used uninitialized
codec2-1.2.0/src/kiss_fftr.h:4: included_from: Included from here.
codec2-1.2.0/src/fsk.h:35: included_from: Included from here.
codec2-1.2.0/src/fsk.c:64: included_from: Included from here.
codec2-1.2.0/src/kiss_fft.h:93:6: note: by argument 2 of type ‘const struct kiss_fft_cpx *’ to ‘kiss_fft’ declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
codec2-1.2.0/src/fsk.c:980:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*fsk.stats’
codec2-1.2.0/src/fsk.c:248:13: enter_function: entry to ‘fsk_create_hbr’
codec2-1.2.0/src/fsk.c:250:10: call_function: calling ‘fsk_create_core’ from ‘fsk_create_hbr’
Error: CPPCHECK_WARNING (CWE-476): [#def81]
codec2-1.2.0/src/fsk_demod.c:319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rawbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
codec2-1.2.0/src/fsk_demod.c:319:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fin’ where non-null expected
codec2-1.2.0/src/fsk_demod.c:82:10: branch_true: following ‘true’ branch (when ‘o != -1’)...
codec2-1.2.0/src/fsk_demod.c:97:9: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:155:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:222:16: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:226:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:232:19: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:232:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/fsk_demod.c:235:11: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:235:11: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_demod.c:238:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_demod.c:239:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:248:6: branch_true: following ‘true’ branch (when ‘user_fsk_lower == 0’)...
codec2-1.2.0/src/fsk_demod.c:249:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:254:6: branch_true: following ‘true’ branch (when ‘user_fsk_upper == 0’)...
codec2-1.2.0/src/fsk_demod.c:255:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:263:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:272:6: branch_false: following ‘false’ branch (when ‘testframe_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:291:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:298:6: branch_false: following ‘false’ branch (when ‘soft_dec_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:304:50: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:319:10: danger: argument 4 (‘fin’) from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def83]
codec2-1.2.0/src/fsk_demod.c:327: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: modbuf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
codec2-1.2.0/src/fsk_demod.c:327:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘modbuf’
codec2-1.2.0/src/fsk_demod.c:82:10: branch_true: following ‘true’ branch (when ‘o != -1’)...
codec2-1.2.0/src/fsk_demod.c:97:9: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:155:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:222:16: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:226:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:232:19: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:232:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_demod.c:233:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:238:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_demod.c:239:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:248:6: branch_true: following ‘true’ branch (when ‘user_fsk_lower == 0’)...
codec2-1.2.0/src/fsk_demod.c:249:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:254:6: branch_true: following ‘true’ branch (when ‘user_fsk_upper == 0’)...
codec2-1.2.0/src/fsk_demod.c:255:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:263:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:272:6: branch_false: following ‘false’ branch (when ‘testframe_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:291:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:298:6: branch_false: following ‘false’ branch (when ‘soft_dec_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:304:50: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:309:20: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_demod.c:319:10: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: following ‘true’ branch (when ‘complex_input == 1’)...
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:326:19: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk_demod.c:327:40: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:327:9: danger: ‘modbuf + (long unsigned int)i * 8’ could be NULL: unchecked value from [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
codec2-1.2.0/src/fsk_demod.c:327:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rawbuf’
codec2-1.2.0/src/fsk_demod.c:82:10: branch_true: following ‘true’ branch (when ‘o != -1’)...
codec2-1.2.0/src/fsk_demod.c:97:9: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:155:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:160:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:222:16: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:226:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:232:19: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:232:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_demod.c:233:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:238:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_demod.c:239:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:248:6: branch_true: following ‘true’ branch (when ‘user_fsk_lower == 0’)...
codec2-1.2.0/src/fsk_demod.c:249:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:254:6: branch_true: following ‘true’ branch (when ‘user_fsk_upper == 0’)...
codec2-1.2.0/src/fsk_demod.c:255:5: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:263:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_demod.c:272:6: branch_false: following ‘false’ branch (when ‘testframe_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:291:6: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:298:6: branch_false: following ‘false’ branch (when ‘soft_dec_mode == 0’)...
codec2-1.2.0/src/fsk_demod.c:304:50: branch_false: ...to here
codec2-1.2.0/src/fsk_demod.c:307:23: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_demod.c:319:10: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: following ‘true’ branch (when ‘complex_input == 1’)...
codec2-1.2.0/src/fsk_demod.c:324:8: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:326:19: branch_true: following ‘true’ branch...
codec2-1.2.0/src/fsk_demod.c:327:40: branch_true: ...to here
codec2-1.2.0/src/fsk_demod.c:327:34: danger: ‘rawbuf + (long unsigned int)i * 2’ could be NULL: unchecked value from [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def86]
codec2-1.2.0/src/fsk_demod.c:328: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: modbuf
Error: COMPILER_WARNING (CWE-563): [#def87]
codec2-1.2.0/src/fsk_demod.c: scope_hint: In function ‘main’
codec2-1.2.0/src/fsk_demod.c:348:11: warning[-Wunused-variable]: unused variable ‘bps’
Error: CPPCHECK_WARNING (CWE-476): [#def88]
codec2-1.2.0/src/fsk_get_test_bits.c:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
codec2-1.2.0/src/fsk_get_test_bits.c:82:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bitbuf’
codec2-1.2.0/src/fsk_get_test_bits.c:46:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/fsk_get_test_bits.c:52:6: branch_false: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:52:6: branch_false: following ‘false’ branch (when ‘argc != 4’)...
codec2-1.2.0/src/fsk_get_test_bits.c:58:12: branch_false: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:60:6: branch_false: following ‘false’ branch (when ‘framecnt != 0’)...
codec2-1.2.0/src/fsk_get_test_bits.c:65:7: branch_false: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:65:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_get_test_bits.c:66:5: branch_true: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:71:6: branch_false: following ‘false’ branch (when ‘fout’ is non-NULL)...
codec2-1.2.0/src/fsk_get_test_bits.c:77:23: branch_false: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:77:23: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_get_test_bits.c:81:15: branch_true: following ‘true’ branch (when ‘framesize > i’)...
codec2-1.2.0/src/fsk_get_test_bits.c:82:17: branch_true: ...to here
codec2-1.2.0/src/fsk_get_test_bits.c:82:5: danger: ‘bitbuf + (sizetype)i’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def90]
codec2-1.2.0/src/fsk_get_test_bits.c:88: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def91]
codec2-1.2.0/src/fsk_mod.c:118:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fin’ where non-null expected
codec2-1.2.0/src/fsk_mod.c:76:6: branch_false: following ‘false’ branch (when ‘argc > 7’)...
codec2-1.2.0/src/fsk_mod.c:82:17: branch_false: ...to here
codec2-1.2.0/src/fsk_mod.c:88:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/fsk_mod.c:91:11: branch_false: ...to here
codec2-1.2.0/src/fsk_mod.c:91:11: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_mod.c:95:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/fsk_mod.c:96:5: branch_true: ...to here
codec2-1.2.0/src/fsk_mod.c:103:6: branch_true: following ‘true’ branch (when ‘user_p == 0’)...
codec2-1.2.0/src/fsk_mod.c:103:16: branch_true: ...to here
codec2-1.2.0/src/fsk_mod.c:108:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/fsk_mod.c:118:10: danger: argument 4 (‘fin’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def92]
codec2-1.2.0/src/fsk_mod.c:126: warning[uninitvar]: Uninitialized variable: rawbuf
Error: CPPCHECK_WARNING (CWE-457): [#def93]
codec2-1.2.0/src/fsk_mod.c:136: warning[uninitvar]: Uninitialized variable: rawbuf
Error: CPPCHECK_WARNING (CWE-476): [#def94]
codec2-1.2.0/src/fsk_put_test_bits.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf_tx
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
codec2-1.2.0/src/fsk_put_test_bits.c:118:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bitbuf_tx’
codec2-1.2.0/src/fsk_put_test_bits.c:83:6: branch_false: following ‘false’ branch (when ‘argc != 1’)...
codec2-1.2.0/src/fsk_put_test_bits.c:89:6: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:89:6: branch_false: following ‘false’ branch (when ‘packed_in == 0’)...
codec2-1.2.0/src/fsk_put_test_bits.c:99:22: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:106:6: branch_false: following ‘false’ branch (when ‘fin’ is non-NULL)...
codec2-1.2.0/src/fsk_put_test_bits.c:112:26: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:112:26: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_put_test_bits.c:117:15: branch_true: following ‘true’ branch (when ‘i < framesize’)...
codec2-1.2.0/src/fsk_put_test_bits.c:118:20: branch_true: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:118:5: danger: ‘bitbuf_tx + (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): [#def96]
codec2-1.2.0/src/fsk_put_test_bits.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf_rx
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
codec2-1.2.0/src/fsk_put_test_bits.c:119:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bitbuf_rx’
codec2-1.2.0/src/fsk_put_test_bits.c:83:6: branch_false: following ‘false’ branch (when ‘argc != 1’)...
codec2-1.2.0/src/fsk_put_test_bits.c:89:6: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:89:6: branch_false: following ‘false’ branch (when ‘packed_in == 0’)...
codec2-1.2.0/src/fsk_put_test_bits.c:99:22: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:106:6: branch_false: following ‘false’ branch (when ‘fin’ is non-NULL)...
codec2-1.2.0/src/fsk_put_test_bits.c:112:26: branch_false: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:113:26: acquire_memory: this call could return NULL
codec2-1.2.0/src/fsk_put_test_bits.c:117:15: branch_true: following ‘true’ branch (when ‘i < framesize’)...
codec2-1.2.0/src/fsk_put_test_bits.c:118:20: branch_true: ...to here
codec2-1.2.0/src/fsk_put_test_bits.c:119:5: danger: ‘bitbuf_rx + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def98]
codec2-1.2.0/src/fsk_put_test_bits.c:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf_rx
Error: CPPCHECK_WARNING (CWE-476): [#def99]
codec2-1.2.0/src/fsk_put_test_bits.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf_rx
Error: CPPCHECK_WARNING (CWE-476): [#def100]
codec2-1.2.0/src/generate_codebook.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
codec2-1.2.0/src/generate_codebook.c:120:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘b’
codec2-1.2.0/src/generate_codebook.c:132:5: enter_function: entry to ‘main’
codec2-1.2.0/src/generate_codebook.c:136:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/generate_codebook.c:136:6: branch_false: ...to here
codec2-1.2.0/src/generate_codebook.c:142:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/generate_codebook.c:143:27: branch_true: ...to here
codec2-1.2.0/src/generate_codebook.c:145:8: branch_false: following ‘false’ branch...
codec2-1.2.0/src/generate_codebook.c:150:13: branch_false: ...to here
codec2-1.2.0/src/generate_codebook.c:150:13: call_function: calling ‘load’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def102]
codec2-1.2.0/src/generate_codebook.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def103]
codec2-1.2.0/src/generate_codebook.c:122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def104]
codec2-1.2.0/src/generate_codebook.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def105]
codec2-1.2.0/src/generate_codebook.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
codec2-1.2.0/src/generate_codebook.c:150:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cb’
codec2-1.2.0/src/generate_codebook.c:132:5: enter_function: entry to ‘main’
codec2-1.2.0/src/generate_codebook.c:133:26: acquire_memory: this call could return NULL
codec2-1.2.0/src/generate_codebook.c:136:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
codec2-1.2.0/src/generate_codebook.c:136:6: branch_false: ...to here
codec2-1.2.0/src/generate_codebook.c:142:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/generate_codebook.c:143:27: branch_true: ...to here
codec2-1.2.0/src/generate_codebook.c:145:8: branch_false: following ‘false’ branch...
codec2-1.2.0/src/generate_codebook.c:150:13: branch_false: ...to here
codec2-1.2.0/src/generate_codebook.c:150:13: call_function: calling ‘load’ from ‘main’
codec2-1.2.0/src/generate_codebook.c:150:13: return_function: returning to ‘main’ from ‘load’
codec2-1.2.0/src/generate_codebook.c:150:5: danger: ‘cb + (sizetype)i * 8’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def107]
codec2-1.2.0/src/interldpc.c:133:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pbits[j]’
codec2-1.2.0/src/interldpc.c:221:5: enter_function: entry to ‘count_uncoded_errors’
codec2-1.2.0/src/interldpc.c:241:6: branch_false: following ‘false’ branch (when ‘crc16 == 0’)...
codec2-1.2.0/src/interldpc.c:247:3: branch_false: ...to here
codec2-1.2.0/src/interldpc.c:247:3: call_function: calling ‘ldpc_encode_frame’ from ‘count_uncoded_errors’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def108]
codec2-1.2.0/src/interldpc.c:261:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*rx_bits_raw[i]’
codec2-1.2.0/src/interldpc.c:221:5: enter_function: entry to ‘count_uncoded_errors’
codec2-1.2.0/src/interldpc.c:241:6: branch_false: following ‘false’ branch (when ‘crc16 == 0’)...
codec2-1.2.0/src/interldpc.c:247:3: branch_false: ...to here
codec2-1.2.0/src/interldpc.c:247:3: call_function: calling ‘ldpc_encode_frame’ from ‘count_uncoded_errors’
codec2-1.2.0/src/interldpc.c:247:3: return_function: returning to ‘count_uncoded_errors’ from ‘ldpc_encode_frame’
codec2-1.2.0/src/interldpc.c:249:15: branch_false: following ‘false’ branch (when ‘i >= coded_syms_per_frame’)...
codec2-1.2.0/src/interldpc.c:249:15: branch_false: ...to here
codec2-1.2.0/src/interldpc.c:260:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/interldpc.c:261:9: branch_true: ...to here
codec2-1.2.0/src/interldpc.c:261:29: danger: use of uninitialized value ‘*rx_bits_raw[i]’ here
Error: CPPCHECK_WARNING (CWE-476): [#def109]
codec2-1.2.0/src/kiss_fft.c:223: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scratch
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
codec2-1.2.0/src/kiss_fft.c:223:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scratch’
codec2-1.2.0/src/kiss_fft.c:392:6: enter_function: entry to ‘kiss_fft_stride’
codec2-1.2.0/src/kiss_fft.c:399:5: call_function: calling ‘kf_work’ from ‘kiss_fft_stride’
Error: CPPCHECK_WARNING (CWE-476): [#def111]
codec2-1.2.0/src/kiss_fft.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scratch
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
codec2-1.2.0/src/kiss_fft.c:288:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘Fout’
codec2-1.2.0/src/kiss_fft.c:392:6: enter_function: entry to ‘kiss_fft_stride’
codec2-1.2.0/src/kiss_fft.c:398:25: acquire_memory: this call could return NULL
codec2-1.2.0/src/kiss_fft.c:399:5: call_function: calling ‘kf_work’ from ‘kiss_fft_stride’
Error: CPPCHECK_WARNING (CWE-476): [#def113]
codec2-1.2.0/src/kiss_fft.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmpbuf
Error: CPPCHECK_WARNING (CWE-476): [#def114]
codec2-1.2.0/src/ldpc_dec.c:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: input_float
Error: GCC_ANALYZER_WARNING (CWE-457): [#def115]
codec2-1.2.0/src/lsp.c:295:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n1[1]’
codec2-1.2.0/src/lsp.c:289:15: branch_true: following ‘true’ branch (when ‘j <= order’)...
codec2-1.2.0/src/lsp.c:289:15: branch_true: ...to here
codec2-1.2.0/src/lsp.c:290:17: branch_true: following ‘true’ branch...
codec2-1.2.0/src/lsp.c:291:17: branch_true: ...to here
codec2-1.2.0/src/lsp.c:295:48: danger: use of uninitialized value ‘n1[1]’ here
Error: CPPCHECK_WARNING (CWE-682): [#def116]
codec2-1.2.0/src/lsp.c:304: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
codec2-1.2.0/src/lsp.c:304:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n4’
codec2-1.2.0/src/lsp.c:289:15: branch_true: following ‘true’ branch (when ‘j <= order’)...
codec2-1.2.0/src/lsp.c:289:15: branch_true: ...to here
codec2-1.2.0/src/lsp.c:290:17: branch_false: following ‘false’ branch...
codec2-1.2.0/src/lsp.c:304:20: branch_false: ...to here
codec2-1.2.0/src/lsp.c:304:20: danger: dereference of NULL ‘n4’
Error: CPPCHECK_WARNING (CWE-682): [#def118]
codec2-1.2.0/src/lsp.c:305: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def119]
codec2-1.2.0/src/lsp.c:307: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def120]
codec2-1.2.0/src/lsp.c:308: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
codec2-1.2.0/src/mbest.c:46:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mbest’
codec2-1.2.0/src/mbest.c:43:27: acquire_memory: this call could return NULL
codec2-1.2.0/src/mbest.c:46:3: danger: ‘mbest’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
codec2-1.2.0/src/mbest.c:53:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)entries * 20)’
codec2-1.2.0/src/mbest.c:48:28: acquire_memory: this call could return NULL
codec2-1.2.0/src/mbest.c:51:15: branch_true: following ‘true’ branch (when ‘i < entries’)...
codec2-1.2.0/src/mbest.c:51:15: branch_true: ...to here
codec2-1.2.0/src/mbest.c:52:17: branch_true: following ‘true’ branch...
codec2-1.2.0/src/mbest.c:53:5: danger: ‘malloc((long unsigned int)entries * 20) + (long unsigned int)i * 20’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def123]
codec2-1.2.0/src/modem_probe.c:66: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: run
Error: CPPCHECK_WARNING (CWE-476): [#def124]
codec2-1.2.0/src/modem_probe.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mod
Error: CPPCHECK_WARNING (CWE-682): [#def125]
codec2-1.2.0/src/modem_probe.c:87: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def126]
codec2-1.2.0/src/modem_probe.c:87:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘newbuf’ where non-null expected
codec2-1.2.0/src/modem_probe.c:84:18: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:86:10: branch_true: following ‘true’ branch (when ‘cur’ is non-NULL)...
codec2-1.2.0/src/modem_probe.c:87:5: branch_true: ...to here
codec2-1.2.0/src/modem_probe.c:87:5: danger: argument 1 (‘newbuf + i’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
codec2-1.2.0/src/modem_probe.c:130:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(run, "w")’ where non-null expected
codec2-1.2.0/src/modem_probe.c:100:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:103:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:104:20: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:108:10: branch_false: following ‘false’ branch (when ‘cur’ is NULL)...
codec2-1.2.0/src/modem_probe.c:130:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:130:3: danger: argument 1 (‘fopen(run, "w")’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def128]
codec2-1.2.0/src/modem_probe.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: npti
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
codec2-1.2.0/src/modem_probe.c:154:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘npti’
codec2-1.2.0/src/modem_probe.c:140:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:142:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:153:30: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:154:3: danger: ‘npti’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def130]
codec2-1.2.0/src/modem_probe.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: npti
Error: CPPCHECK_WARNING (CWE-476): [#def131]
codec2-1.2.0/src/modem_probe.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: npti
Error: CPPCHECK_WARNING (CWE-476): [#def132]
codec2-1.2.0/src/modem_probe.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: npti
Error: CPPCHECK_WARNING (CWE-476): [#def133]
codec2-1.2.0/src/modem_probe.c:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
codec2-1.2.0/src/modem_probe.c:173:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ndat’
codec2-1.2.0/src/modem_probe.c:163:6: enter_function: entry to ‘modem_probe_samp_i_int’
codec2-1.2.0/src/modem_probe.c:167:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_i_int’
codec2-1.2.0/src/modem_probe.c:167:9: return_function: returning to ‘modem_probe_samp_i_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:168:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:170:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:172:21: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:173:3: danger: ‘ndat’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def135]
codec2-1.2.0/src/modem_probe.c:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def136]
codec2-1.2.0/src/modem_probe.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def137]
codec2-1.2.0/src/modem_probe.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-688): [#def138]
codec2-1.2.0/src/modem_probe.c:177:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(cnt * 4)’ where non-null expected
codec2-1.2.0/src/modem_probe.c:163:6: enter_function: entry to ‘modem_probe_samp_i_int’
codec2-1.2.0/src/modem_probe.c:167:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_i_int’
codec2-1.2.0/src/modem_probe.c:167:9: return_function: returning to ‘modem_probe_samp_i_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:168:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:170:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:173:16: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:177:3: danger: argument 1 (‘malloc(cnt * 4)’) from [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def139]
codec2-1.2.0/src/modem_probe.c:198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
codec2-1.2.0/src/modem_probe.c:198:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ndat’
codec2-1.2.0/src/modem_probe.c:188:6: enter_function: entry to ‘modem_probe_samp_f_int’
codec2-1.2.0/src/modem_probe.c:192:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_f_int’
codec2-1.2.0/src/modem_probe.c:192:9: return_function: returning to ‘modem_probe_samp_f_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:193:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:195:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:197:21: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:198:3: danger: ‘ndat’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def141]
codec2-1.2.0/src/modem_probe.c:200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def142]
codec2-1.2.0/src/modem_probe.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def143]
codec2-1.2.0/src/modem_probe.c:202: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-688): [#def144]
codec2-1.2.0/src/modem_probe.c:202:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(cnt * 4)’ where non-null expected
codec2-1.2.0/src/modem_probe.c:188:6: enter_function: entry to ‘modem_probe_samp_f_int’
codec2-1.2.0/src/modem_probe.c:192:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_f_int’
codec2-1.2.0/src/modem_probe.c:192:9: return_function: returning to ‘modem_probe_samp_f_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:193:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:195:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:198:16: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:202:3: danger: argument 1 (‘malloc(cnt * 4)’) from [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def145]
codec2-1.2.0/src/modem_probe.c:223: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
codec2-1.2.0/src/modem_probe.c:223:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ndat’
codec2-1.2.0/src/modem_probe.c:213:6: enter_function: entry to ‘modem_probe_samp_c_int’
codec2-1.2.0/src/modem_probe.c:217:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_c_int’
codec2-1.2.0/src/modem_probe.c:217:9: return_function: returning to ‘modem_probe_samp_c_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:218:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:220:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:222:21: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:223:3: danger: ‘ndat’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def147]
codec2-1.2.0/src/modem_probe.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def148]
codec2-1.2.0/src/modem_probe.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: CPPCHECK_WARNING (CWE-476): [#def149]
codec2-1.2.0/src/modem_probe.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ndat
Error: GCC_ANALYZER_WARNING (CWE-688): [#def150]
codec2-1.2.0/src/modem_probe.c:227:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(cnt * 8)’ where non-null expected
codec2-1.2.0/src/modem_probe.c:213:6: enter_function: entry to ‘modem_probe_samp_c_int’
codec2-1.2.0/src/modem_probe.c:217:9: call_function: calling ‘modem_probe_get_trace’ from ‘modem_probe_samp_c_int’
codec2-1.2.0/src/modem_probe.c:217:9: return_function: returning to ‘modem_probe_samp_c_int’ from ‘modem_probe_get_trace’
codec2-1.2.0/src/modem_probe.c:218:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/modem_probe.c:220:3: branch_false: ...to here
codec2-1.2.0/src/modem_probe.c:223:16: acquire_memory: this call could return NULL
codec2-1.2.0/src/modem_probe.c:227:3: danger: argument 1 (‘malloc(cnt * 8)’) from [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
codec2-1.2.0/src/mpdecode_core.c:159:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:493:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
codec2-1.2.0/src/mpdecode_core.c:180:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:493:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
codec2-1.2.0/src/mpdecode_core.c:182:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:493:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
codec2-1.2.0/src/mpdecode_core.c:249:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:493:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
codec2-1.2.0/src/mpdecode_core.c:254:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)*<unknown>.degree, 8)’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
codec2-1.2.0/src/mpdecode_core.c:268:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘v_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:495:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
codec2-1.2.0/src/mpdecode_core.c:298:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘v_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:495:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
codec2-1.2.0/src/mpdecode_core.c:309:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.subs + (long unsigned int)j * 12’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
codec2-1.2.0/src/mpdecode_core.c:317:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.subs + (long unsigned int)j * 12’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
codec2-1.2.0/src/mpdecode_core.c:340:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c_nodes’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:493:13: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
codec2-1.2.0/src/mpdecode_core.c:342:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.subs + (long unsigned int)j * 8’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
codec2-1.2.0/src/mpdecode_core.c:433:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘DecodedBits’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:475:23: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: return_function: returning to ‘run_ldpc_decoder’ from ‘init_c_v_nodes’
codec2-1.2.0/src/mpdecode_core.c:507:15: branch_false: following ‘false’ branch (when ‘i >= CodeLength’)...
codec2-1.2.0/src/mpdecode_core.c:510:14: branch_false: ...to here
codec2-1.2.0/src/mpdecode_core.c:510:14: call_function: calling ‘SumProduct’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
codec2-1.2.0/src/mpdecode_core.c:433:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
codec2-1.2.0/src/mpdecode_core.c:454:5: enter_function: entry to ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: call_function: calling ‘init_c_v_nodes’ from ‘run_ldpc_decoder’
codec2-1.2.0/src/mpdecode_core.c:498:3: return_function: returning to ‘run_ldpc_decoder’ from ‘init_c_v_nodes’
codec2-1.2.0/src/mpdecode_core.c:503:19: acquire_memory: this call could return NULL
codec2-1.2.0/src/mpdecode_core.c:507:15: branch_false: following ‘false’ branch (when ‘i >= CodeLength’)...
codec2-1.2.0/src/mpdecode_core.c:510:14: branch_false: ...to here
codec2-1.2.0/src/mpdecode_core.c:510:14: call_function: calling ‘SumProduct’ from ‘run_ldpc_decoder’
Error: GCC_ANALYZER_WARNING: [#def164]
codec2-1.2.0/src/mpdecode_core.c:599:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
codec2-1.2.0/src/mpdecode_core.c:723:6: enter_function: entry to ‘fsk_rx_filt_to_llrs’
codec2-1.2.0/src/mpdecode_core.c:731:3: call_function: calling ‘Somap’ from ‘fsk_rx_filt_to_llrs’
Error: GCC_ANALYZER_WARNING: [#def165]
codec2-1.2.0/src/mpdecode_core.c:599:19: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
codec2-1.2.0/src/mpdecode_core.c:723:6: enter_function: entry to ‘fsk_rx_filt_to_llrs’
codec2-1.2.0/src/mpdecode_core.c:731:3: call_function: calling ‘Somap’ from ‘fsk_rx_filt_to_llrs’
Error: GCC_ANALYZER_WARNING: [#def166]
codec2-1.2.0/src/mpdecode_core.c:728:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
codec2-1.2.0/src/mpdecode_core.c:733:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*bit_likelihood[i]’
codec2-1.2.0/src/mpdecode_core.c:732:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/mpdecode_core.c:733:15: branch_true: ...to here
codec2-1.2.0/src/mpdecode_core.c:733:15: danger: use of uninitialized value ‘*bit_likelihood[i]’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
codec2-1.2.0/src/nlp.c:131:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)(*c2const.n_samp + 48) * 4)’
codec2-1.2.0/src/nlp.c:118:6: branch_false: following ‘false’ branch (when ‘nlp’ is non-NULL)...
codec2-1.2.0/src/nlp.c:121:3: branch_false: ...to here
codec2-1.2.0/src/nlp.c:127:6: branch_true: following ‘true’ branch (when ‘Fs == 16000’)...
codec2-1.2.0/src/nlp.c:129:62: branch_true: ...to here
codec2-1.2.0/src/nlp.c:129:18: acquire_memory: this call could return NULL
codec2-1.2.0/src/nlp.c:130:17: branch_true: following ‘true’ branch (when ‘i != 48’)...
codec2-1.2.0/src/nlp.c:131:17: branch_true: ...to here
codec2-1.2.0/src/nlp.c:131:7: danger: ‘malloc((long unsigned int)(*c2const.n_samp + 48) * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-401): [#def169]
codec2-1.2.0/src/nlp.c:157: error[memleak]: Memory leak: nlp.Sn16k
Error: CPPCHECK_WARNING (CWE-786): [#def170]
codec2-1.2.0/src/nlp.c:469: error[negativeIndex]: Array 'in16k[0]' accessed at index -48, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def171]
codec2-1.2.0/src/ofdm.c:686:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*vector’
codec2-1.2.0/src/ofdm.c:1538:13: enter_function: entry to ‘ofdm_demod_core’
codec2-1.2.0/src/ofdm.c:1555:6: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1629:3: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1645:23: branch_false: following ‘false’ branch (when ‘j >= en’)...
codec2-1.2.0/src/ofdm.c:1663:13: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1663:3: call_function: calling ‘dft’ from ‘ofdm_demod_core’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def172]
codec2-1.2.0/src/ofdm.c:752:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rightPtr[2]’
codec2-1.2.0/src/ofdm.c:1473:12: enter_function: entry to ‘ofdm_sync_search_core’
codec2-1.2.0/src/ofdm.c:1479:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/ofdm.c:1480:12: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1480:12: call_function: calling ‘ofdm_sync_search_burst’ from ‘ofdm_sync_search_core’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def173]
codec2-1.2.0/src/ofdm.c:1896:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*aphase_est_pilot[i]’
codec2-1.2.0/src/ofdm.c:1538:13: enter_function: entry to ‘ofdm_demod_core’
codec2-1.2.0/src/ofdm.c:1663:3: call_function: calling ‘dft’ from ‘ofdm_demod_core’
codec2-1.2.0/src/ofdm.c:1663:3: return_function: returning to ‘ofdm_demod_core’ from ‘dft’
codec2-1.2.0/src/ofdm.c:1754:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1762:43: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1784:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1784:15: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1789:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1789:15: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1880:16: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1880:16: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1887:17: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1888:11: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1888:10: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1889:13: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1889:12: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1896:47: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1896:47: danger: use of uninitialized value ‘*aphase_est_pilot[i]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def174]
codec2-1.2.0/src/ofdm.c:1913:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*aamp_est_pilot[i]’
codec2-1.2.0/src/ofdm.c:1538:13: enter_function: entry to ‘ofdm_demod_core’
codec2-1.2.0/src/ofdm.c:1663:3: call_function: calling ‘dft’ from ‘ofdm_demod_core’
codec2-1.2.0/src/ofdm.c:1663:3: return_function: returning to ‘ofdm_demod_core’ from ‘dft’
codec2-1.2.0/src/ofdm.c:1754:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1762:43: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1784:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1784:15: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1789:15: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1789:15: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1880:16: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1880:16: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1887:17: branch_true: following ‘true’ branch...
codec2-1.2.0/src/ofdm.c:1888:11: branch_true: ...to here
codec2-1.2.0/src/ofdm.c:1888:10: branch_false: following ‘false’ branch...
codec2-1.2.0/src/ofdm.c:1899:19: branch_false: ...to here
codec2-1.2.0/src/ofdm.c:1913:49: danger: use of uninitialized value ‘*aamp_est_pilot[i]’ here
Error: CPPCHECK_WARNING (CWE-457): [#def175]
codec2-1.2.0/src/ofdm.c:2615: warning[uninitvar]: Uninitialized variable: preamble_bits
Error: CPPCHECK_WARNING (CWE-457): [#def176]
codec2-1.2.0/src/ofdm_mod.c:406: warning[uninitvar]: Uninitialized variable: tx_bits
Error: CPPCHECK_WARNING (CWE-457): [#def177]
codec2-1.2.0/src/ofdm_mod.c:430: warning[uninitvar]: Uninitialized variable: sil_short
Error: COMPILER_WARNING: [#def178]
codec2-1.2.0/src/postfilter.c: scope_hint: In function ‘postfilter’
codec2-1.2.0/src/postfilter.c:104:10: warning[-Wunused-but-set-variable=]: variable ‘uv’ set but not used
Error: CPPCHECK_WARNING (CWE-457): [#def179]
codec2-1.2.0/src/quantise.c:109: error[ctuuninitvar]: Using argument se that points at uninitialized variable se
Error: CPPCHECK_WARNING (CWE-457): [#def180]
codec2-1.2.0/src/quantise.c:109: warning[uninitvar]: Uninitialized variable: *se
Error: GCC_ANALYZER_WARNING (CWE-457): [#def181]
codec2-1.2.0/src/quantise.c:109:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*se’
codec2-1.2.0/src/quantise.c:706:6: enter_function: entry to ‘encode_lsps_scalar’
codec2-1.2.0/src/quantise.c:721:15: branch_true: following ‘true’ branch (when ‘i < order’)...
codec2-1.2.0/src/quantise.c:722:5: branch_true: ...to here
codec2-1.2.0/src/quantise.c:725:18: call_function: calling ‘quantise’ from ‘encode_lsps_scalar’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def182]
codec2-1.2.0/src/quantise.c:252:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*err[<unknown>]’
codec2-1.2.0/src/quantise.c:247:15: branch_false: following ‘false’ branch (when ‘i >= order’)...
codec2-1.2.0/src/quantise.c:247:15: branch_false: ...to here
codec2-1.2.0/src/quantise.c:251:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/quantise.c:252:19: branch_true: ...to here
codec2-1.2.0/src/quantise.c:252:15: danger: use of uninitialized value ‘*err[<unknown>]’ here
Error: CPPCHECK_WARNING (CWE-457): [#def183]
codec2-1.2.0/src/quantise.c:257: warning[uninitvar]: Uninitialized variable: w2
Error: CPPCHECK_WARNING (CWE-457): [#def184]
codec2-1.2.0/src/quantise.c:258: warning[uninitvar]: Uninitialized variable: w3
Error: GCC_ANALYZER_WARNING (CWE-457): [#def185]
codec2-1.2.0/src/quantise.c:787:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*err[<unknown>]’
codec2-1.2.0/src/quantise.c:782:15: branch_false: following ‘false’ branch (when ‘i >= order’)...
codec2-1.2.0/src/quantise.c:782:15: branch_false: ...to here
codec2-1.2.0/src/quantise.c:786:15: branch_true: following ‘true’ branch...
codec2-1.2.0/src/quantise.c:787:19: branch_true: ...to here
codec2-1.2.0/src/quantise.c:787:15: danger: use of uninitialized value ‘*err[<unknown>]’ here
Error: CPPCHECK_WARNING (CWE-457): [#def186]
codec2-1.2.0/src/quantise.c:792: warning[uninitvar]: Uninitialized variable: w2
Error: CPPCHECK_WARNING (CWE-457): [#def187]
codec2-1.2.0/src/quantise.c:793: warning[uninitvar]: Uninitialized variable: w3
Error: COMPILER_WARNING (CWE-563): [#def188]
codec2-1.2.0/src/quantise.c: scope_hint: In function ‘quantise_WoE’
codec2-1.2.0/src/quantise.c:1018:9: warning[-Wunused-variable]: unused variable ‘Fs’
Error: CPPCHECK_WARNING (CWE-476): [#def189]
codec2-1.2.0/src/vhf_deframe_c2.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def190]
codec2-1.2.0/src/vhf_deframe_c2.c:109:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fin’ where non-null expected
codec2-1.2.0/src/vhf_deframe_c2.c:46:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/vhf_deframe_c2.c:52:7: branch_false: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:63:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/vhf_deframe_c2.c:66:11: branch_false: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:66:11: acquire_memory: this call could return NULL
codec2-1.2.0/src/vhf_deframe_c2.c:69:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/vhf_deframe_c2.c:70:5: branch_true: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:78:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/vhf_deframe_c2.c:79:5: branch_true: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:109:3: danger: argument 1 (‘fin’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def191]
codec2-1.2.0/src/vhf_deframe_c2.c:110:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fout’ where non-null expected
codec2-1.2.0/src/vhf_deframe_c2.c:46:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/vhf_deframe_c2.c:52:7: branch_false: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:69:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/vhf_deframe_c2.c:72:12: branch_false: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:72:12: acquire_memory: this call could return NULL
codec2-1.2.0/src/vhf_deframe_c2.c:78:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/vhf_deframe_c2.c:79:5: branch_true: ...to here
codec2-1.2.0/src/vhf_deframe_c2.c:110:3: danger: argument 1 (‘fout’) 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): [#def192]
codec2-1.2.0/src/vhf_frame_c2.c:90: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c2buf
Error: CPPCHECK_WARNING (CWE-476): [#def193]
codec2-1.2.0/src/vhf_frame_c2.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bitbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def194]
codec2-1.2.0/src/vhf_frame_c2.c:103:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fin’ where non-null expected
codec2-1.2.0/src/vhf_frame_c2.c:45:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/vhf_frame_c2.c:51:7: branch_false: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:62:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/vhf_frame_c2.c:65:11: branch_false: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:65:11: acquire_memory: this call could return NULL
codec2-1.2.0/src/vhf_frame_c2.c:68:6: branch_true: following ‘true’ branch (when the strings are equal)...
codec2-1.2.0/src/vhf_frame_c2.c:69:5: branch_true: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:77:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/vhf_frame_c2.c:78:5: branch_true: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:103:3: danger: argument 1 (‘fin’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def195]
codec2-1.2.0/src/vhf_frame_c2.c:104:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fout’ where non-null expected
codec2-1.2.0/src/vhf_frame_c2.c:45:6: branch_false: following ‘false’ branch (when ‘argc > 2’)...
codec2-1.2.0/src/vhf_frame_c2.c:51:7: branch_false: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:68:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
codec2-1.2.0/src/vhf_frame_c2.c:71:12: branch_false: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:71:12: acquire_memory: this call could return NULL
codec2-1.2.0/src/vhf_frame_c2.c:77:6: branch_true: following ‘true’ branch...
codec2-1.2.0/src/vhf_frame_c2.c:78:5: branch_true: ...to here
codec2-1.2.0/src/vhf_frame_c2.c:104:3: danger: argument 1 (‘fout’) from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-96.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | codec2-1.2.0-9.fc44 |
| store-results-to | /tmp/tmp85iu1ltl/codec2-1.2.0-9.fc44.tar.xz |
| time-created | 2026-08-03 13:37:51 |
| time-finished | 2026-08-03 13:40:06 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp85iu1ltl/codec2-1.2.0-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp85iu1ltl/codec2-1.2.0-9.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |