qrencode-4.1.1-12.fc44
List of Findings
Error: COMPILER_WARNING: [#def1]
qrencode-4.1.1/qrenc.c: scope_hint: In function ‘writeANSI.isra.0’
qrencode-4.1.1/qrenc.c:795:17: warning[-Wstringop-truncation]: ‘__strncpy_chk’ output may be truncated copying between 5 and 11 bytes from a string of length 11
Error: COMPILER_WARNING: [#def2]
qrencode-4.1.1/qrenc.c:797:25: warning[-Wstringop-overflow=]: ‘strncat’ specified bound 2 equals source length
Error: COMPILER_WARNING: [#def3]
qrencode-4.1.1/qrenc.c:804:41: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying between 5 and 10 bytes from a string of length 10
Error: COMPILER_WARNING: [#def4]
qrencode-4.1.1/qrenc.c:808:33: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying between 5 and 11 bytes from a string of length 11
Error: COMPILER_WARNING: [#def5]
qrencode-4.1.1/qrenc.c:811:25: warning[-Wstringop-overflow=]: ‘strncat’ specified bound 2 equals source length
Error: COMPILER_WARNING: [#def6]
qrencode-4.1.1/qrenc.c:815:25: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying between 5 and 11 bytes from a string of length 11
Error: COMPILER_WARNING: [#def7]
qrencode-4.1.1/qrenc.c:818:25: warning[-Wstringop-overflow=]: ‘strncat’ specified bound 2 equals source length
Error: COMPILER_WARNING: [#def8]
qrencode-4.1.1/qrenc.c:820:17: warning[-Wstringop-overflow=]: ‘strncat’ specified bound 5 equals source length
Error: CPPCHECK_WARNING (CWE-476): [#def9]
qrencode-4.1.1/qrencode.c:499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: masked
Error: CPPCHECK_WARNING (CWE-476): [#def10]
qrencode-4.1.1/qrencode.c:586: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: masked
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
qrencode-4.1.1/qrencode.c:586:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘masked’ where non-null expected
qrencode-4.1.1/qrencode.c:519:27: enter_function: entry to ‘QRcode_encodeMaskMQR’
qrencode-4.1.1/qrencode.c:541:15: call_function: calling ‘MQRraw_new’ from ‘QRcode_encodeMaskMQR’
qrencode-4.1.1/qrencode.c:541:15: return_function: returning to ‘QRcode_encodeMaskMQR’ from ‘MQRraw_new’
qrencode-4.1.1/qrencode.c:542:11: branch_false: following ‘false’ branch...
qrencode-4.1.1/qrencode.c:544:9: branch_false: ...to here
qrencode-4.1.1/qrencode.c:547:11: branch_false: following ‘false’ branch...
qrencode-4.1.1/qrencode.c:551:9: call_function: inlined call to ‘FrameFiller_set’ from ‘QRcode_encodeMaskMQR’
qrencode-4.1.1/qrencode.c:569:20: branch_false: following ‘false’ branch...
qrencode-4.1.1/qrencode.c:580:9: branch_false: ...to here
qrencode-4.1.1/qrencode.c:580:9: call_function: calling ‘MQRraw_free’ from ‘QRcode_encodeMaskMQR’
qrencode-4.1.1/qrencode.c:580:9: return_function: returning to ‘QRcode_encodeMaskMQR’ from ‘MQRraw_free’
qrencode-4.1.1/qrencode.c:584:11: branch_true: following ‘true’ branch (when ‘mask == -2’)...
qrencode-4.1.1/qrencode.c:585:58: branch_true: ...to here
qrencode-4.1.1/qrencode.c:585:43: acquire_memory: this call could return NULL
qrencode-4.1.1/qrencode.c:586:17: danger: argument 1 (‘masked’) from [(27)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/26) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def12]
qrencode-4.1.1/tests/datachunk.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
qrencode-4.1.1/tests/datachunk.c:166:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
qrencode-4.1.1/tests/datachunk.c:161:11: branch_false: following ‘false’ branch (when ‘size > 0’)...
qrencode-4.1.1/tests/datachunk.c:163:40: branch_false: ...to here
qrencode-4.1.1/tests/datachunk.c:163:33: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/datachunk.c:165:15: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
qrencode-4.1.1/tests/datachunk.c:166:48: branch_true: ...to here
qrencode-4.1.1/tests/datachunk.c:166:17: danger: argument 1 (‘data + (sizetype)idx’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def14]
qrencode-4.1.1/tests/datachunk.c:170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def15]
qrencode-4.1.1/tests/decoder.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
qrencode-4.1.1/tests/decoder.c:559:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filler’
qrencode-4.1.1/tests/decoder.c:915:9: enter_function: entry to ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:922:19: call_function: calling ‘QRcode_extractBitsMQR’ from ‘QRcode_decodeBitsMQR’
Error: CPPCHECK_WARNING (CWE-682): [#def17]
qrencode-4.1.1/tests/decoder.c:638: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def18]
qrencode-4.1.1/tests/decoder.c:839: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bits
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
qrencode-4.1.1/tests/decoder.c:839:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits’
qrencode-4.1.1/tests/decoder.c:915:9: enter_function: entry to ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:922:19: call_function: calling ‘QRcode_extractBitsMQR’ from ‘QRcode_decodeBitsMQR’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
qrencode-4.1.1/tests/decoder.c:839:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
qrencode-4.1.1/tests/decoder.c:915:9: enter_function: entry to ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:922:19: call_function: calling ‘QRcode_extractBitsMQR’ from ‘QRcode_decodeBitsMQR’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
qrencode-4.1.1/tests/decoder.c:928:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘QRdata_newMQR()’
qrencode-4.1.1/tests/decoder.c:915:9: enter_function: entry to ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:922:19: call_function: calling ‘QRcode_extractBitsMQR’ from ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:922:19: return_function: returning to ‘QRcode_decodeBitsMQR’ from ‘QRcode_extractBitsMQR’
qrencode-4.1.1/tests/decoder.c:923:11: branch_false: following ‘false’ branch...
qrencode-4.1.1/tests/decoder.c:927:18: branch_false: ...to here
qrencode-4.1.1/tests/decoder.c:927:18: call_function: calling ‘QRdata_newMQR’ from ‘QRcode_decodeBitsMQR’
qrencode-4.1.1/tests/decoder.c:927:18: return_function: returning to ‘QRcode_decodeBitsMQR’ from ‘QRdata_newMQR’
qrencode-4.1.1/tests/decoder.c:928:9: danger: dereference of NULL ‘QRdata_newMQR()’
Error: CPPCHECK_WARNING (CWE-476): [#def22]
qrencode-4.1.1/tests/test_estimatebit.c:50: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: num
Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
qrencode-4.1.1/tests/test_estimatebit.c:50:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘num’ where non-null expected
qrencode-4.1.1/tests/test_estimatebit.c:49:23: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_estimatebit.c:50:9: danger: argument 1 (‘num’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def24]
qrencode-4.1.1/tests/test_estimatebit.c:51: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: num
Error: CPPCHECK_WARNING (CWE-476): [#def25]
qrencode-4.1.1/tests/test_mask.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
qrencode-4.1.1/tests/test_mask.c:150:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘frame’ where non-null expected
qrencode-4.1.1/tests/test_mask.c:147:34: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_mask.c:150:9: danger: argument 1 (‘frame’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def27]
qrencode-4.1.1/tests/test_mask.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def28]
qrencode-4.1.1/tests/test_mask.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
qrencode-4.1.1/tests/test_mask.c:184:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘frame’
qrencode-4.1.1/tests/test_mask.c:180:34: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_mask.c:183:18: branch_true: following ‘true’ branch (when ‘x != 10’)...
qrencode-4.1.1/tests/test_mask.c:184:34: branch_true: ...to here
qrencode-4.1.1/tests/test_mask.c:184:17: danger: ‘frame + (sizetype)x’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def30]
qrencode-4.1.1/tests/test_mask.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def31]
qrencode-4.1.1/tests/test_mask.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def32]
qrencode-4.1.1/tests/test_mask.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def33]
qrencode-4.1.1/tests/test_mask.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def34]
qrencode-4.1.1/tests/test_mask.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def35]
qrencode-4.1.1/tests/test_mask.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def36]
qrencode-4.1.1/tests/test_mask.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def37]
qrencode-4.1.1/tests/test_mask.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def38]
qrencode-4.1.1/tests/test_mask.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def39]
qrencode-4.1.1/tests/test_mask.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
qrencode-4.1.1/tests/test_mask.c:261:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘frame’
qrencode-4.1.1/tests/test_mask.c:255:34: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_mask.c:259:18: branch_true: following ‘true’ branch (when ‘y != 5’)...
qrencode-4.1.1/tests/test_mask.c:259:18: branch_true: ...to here
qrencode-4.1.1/tests/test_mask.c:260:26: branch_true: following ‘true’ branch (when ‘x != 15’)...
qrencode-4.1.1/tests/test_mask.c:261:31: branch_true: ...to here
qrencode-4.1.1/tests/test_mask.c:261:25: danger: ‘frame + (sizetype)(y * 30 + x)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def41]
qrencode-4.1.1/tests/test_mask.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def42]
qrencode-4.1.1/tests/test_mask.c:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frame
Error: CPPCHECK_WARNING (CWE-476): [#def43]
qrencode-4.1.1/tests/test_monkey.c:105: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
qrencode-4.1.1/tests/test_monkey.c:105:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: CPPCHECK_WARNING (CWE-476): [#def45]
qrencode-4.1.1/tests/test_monkey.c:110: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
qrencode-4.1.1/tests/test_monkey.c:110:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def47]
qrencode-4.1.1/tests/test_monkey.c:119:33: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: CPPCHECK_WARNING (CWE-476): [#def48]
qrencode-4.1.1/tests/test_monkey.c:124: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def49]
qrencode-4.1.1/tests/test_monkey.c:124:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def50]
qrencode-4.1.1/tests/test_monkey.c:135:33: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: CPPCHECK_WARNING (CWE-476): [#def51]
qrencode-4.1.1/tests/test_monkey.c:140: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
qrencode-4.1.1/tests/test_monkey.c:140:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
qrencode-4.1.1/tests/test_monkey.c:149:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: CPPCHECK_WARNING (CWE-476): [#def54]
qrencode-4.1.1/tests/test_monkey.c:158: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
qrencode-4.1.1/tests/test_monkey.c:158:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def56]
qrencode-4.1.1/tests/test_monkey.c:169:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: CPPCHECK_WARNING (CWE-476): [#def57]
qrencode-4.1.1/tests/test_monkey.c:178: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def58]
qrencode-4.1.1/tests/test_monkey.c:178:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&buf, "w")’ where non-null expected
qrencode-4.1.1/tests/test_monkey.c:185:13: enter_function: entry to ‘monkey_encode_an’
qrencode-4.1.1/tests/test_monkey.c:191:18: branch_true: following ‘true’ branch (when ‘i < loop’)...
qrencode-4.1.1/tests/test_monkey.c:192:17: branch_true: ...to here
qrencode-4.1.1/tests/test_monkey.c:192:17: call_function: calling ‘test_encode_an’ from ‘monkey_encode_an’
Error: COMPILER_WARNING: [#def59]
qrencode-4.1.1/tests/test_monkey.c: scope_hint: In function ‘test_split_structure’
qrencode-4.1.1/tests/test_monkey.c:481:16: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def60]
qrencode-4.1.1/tests/test_qrinput.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
Error: GCC_ANALYZER_WARNING (CWE-688): [#def61]
qrencode-4.1.1/tests/test_qrinput.c:129:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:128:23: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:129:9: danger: argument 1 (‘str’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def62]
qrencode-4.1.1/tests/test_qrinput.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
qrencode-4.1.1/tests/test_qrinput.c:182:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:181:23: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:182:9: danger: argument 1 (‘str’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def64]
qrencode-4.1.1/tests/test_qrinput.c:204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: correct
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
qrencode-4.1.1/tests/test_qrinput.c:204:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘correct’
qrencode-4.1.1/tests/test_qrinput.c:203:27: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:204:9: danger: ‘correct’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def66]
qrencode-4.1.1/tests/test_qrinput.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: correct
Error: CPPCHECK_WARNING (CWE-476): [#def67]
qrencode-4.1.1/tests/test_qrinput.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: correct
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
qrencode-4.1.1/tests/test_qrinput.c:224:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘correct’
qrencode-4.1.1/tests/test_qrinput.c:223:27: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:224:9: danger: ‘correct’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def69]
qrencode-4.1.1/tests/test_qrinput.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: correct
Error: CPPCHECK_WARNING (CWE-476): [#def70]
qrencode-4.1.1/tests/test_qrinput.c:492: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
qrencode-4.1.1/tests/test_qrinput.c:492:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
qrencode-4.1.1/tests/test_qrinput.c:490:24: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:491:18: branch_true: following ‘true’ branch (when ‘i != 8000’)...
qrencode-4.1.1/tests/test_qrinput.c:492:33: branch_true: ...to here
qrencode-4.1.1/tests/test_qrinput.c:492:17: danger: ‘data + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def72]
qrencode-4.1.1/tests/test_qrinput.c:565: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
Error: GCC_ANALYZER_WARNING (CWE-688): [#def73]
qrencode-4.1.1/tests/test_qrinput.c:565:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:564:23: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:565:9: danger: argument 1 (‘str’) from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def74]
qrencode-4.1.1/tests/test_qrinput.c:587: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
Error: GCC_ANALYZER_WARNING (CWE-688): [#def75]
qrencode-4.1.1/tests/test_qrinput.c:587:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:586:23: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:587:9: danger: argument 1 (‘str’) from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def76]
qrencode-4.1.1/tests/test_qrinput.c:652:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d1’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:648:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:651:15: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
qrencode-4.1.1/tests/test_qrinput.c:652:41: branch_true: ...to here
qrencode-4.1.1/tests/test_qrinput.c:652:17: danger: argument 1 (‘d1 + (sizetype)i’) from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
qrencode-4.1.1/tests/test_qrinput.c:660:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d2’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:651:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:656:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:656:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:659:15: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
qrencode-4.1.1/tests/test_qrinput.c:660:41: branch_true: ...to here
qrencode-4.1.1/tests/test_qrinput.c:660:17: danger: argument 1 (‘d2 + (sizetype)i’) from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
qrencode-4.1.1/tests/test_qrinput.c:668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d1’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:648:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:651:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:656:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:659:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:665:9: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:668:9: danger: argument 1 (‘d1’) from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
qrencode-4.1.1/tests/test_qrinput.c:668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d2’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:651:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:656:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:656:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:659:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:665:9: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:668:9: danger: argument 2 (‘d2’) from [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
qrencode-4.1.1/tests/test_qrinput.c:710:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d1’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:706:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:709:15: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
qrencode-4.1.1/tests/test_qrinput.c:710:41: branch_true: ...to here
qrencode-4.1.1/tests/test_qrinput.c:710:17: danger: argument 1 (‘d1 + (sizetype)i’) from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
qrencode-4.1.1/tests/test_qrinput.c:718:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d2’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:709:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:714:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:714:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:717:15: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
qrencode-4.1.1/tests/test_qrinput.c:718:41: branch_true: ...to here
qrencode-4.1.1/tests/test_qrinput.c:718:17: danger: argument 1 (‘d2 + (sizetype)i’) from [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
qrencode-4.1.1/tests/test_qrinput.c:726:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d1’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:706:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:709:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:714:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:717:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:723:9: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:726:9: danger: argument 1 (‘d1’) from [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
qrencode-4.1.1/tests/test_qrinput.c:726:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d2’ where non-null expected
qrencode-4.1.1/tests/test_qrinput.c:709:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:714:31: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:714:31: acquire_memory: this call could return NULL
qrencode-4.1.1/tests/test_qrinput.c:717:15: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
qrencode-4.1.1/tests/test_qrinput.c:723:9: branch_false: ...to here
qrencode-4.1.1/tests/test_qrinput.c:726:9: danger: argument 2 (‘d2’) from [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
qrencode-4.1.1/tests/test_qrspec.c:145:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("./frame", "rb")’
qrencode-4.1.1/tests/test_qrspec.c:137:14: acquire_resource: opened here
qrencode-4.1.1/tests/test_qrspec.c:138:11: branch_false: following ‘false’ branch...
qrencode-4.1.1/tests/test_qrspec.c:138:11: branch_false: ...to here
qrencode-4.1.1/tests/test_qrspec.c:142:18: branch_true: following ‘true’ branch (when ‘i != 41’)...
qrencode-4.1.1/tests/test_qrspec.c:143:25: branch_true: ...to here
qrencode-4.1.1/tests/test_qrspec.c:145:37: danger: ‘fopen("./frame", "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
qrencode-4.1.1/tests/test_qrspec.c:145:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("./frame", "rb")’
qrencode-4.1.1/tests/test_qrspec.c:137:14: acquire_memory: allocated here
qrencode-4.1.1/tests/test_qrspec.c:138:11: branch_false: following ‘false’ branch...
qrencode-4.1.1/tests/test_qrspec.c:138:11: branch_false: ...to here
qrencode-4.1.1/tests/test_qrspec.c:142:18: branch_true: following ‘true’ branch (when ‘i != 41’)...
qrencode-4.1.1/tests/test_qrspec.c:143:25: branch_true: ...to here
qrencode-4.1.1/tests/test_qrspec.c:145:37: danger: ‘fopen("./frame", "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
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-163.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 | qrencode-4.1.1-12.fc44 |
| store-results-to | /tmp/tmp8ndywlav/qrencode-4.1.1-12.fc44.tar.xz |
| time-created | 2026-08-03 20:17:07 |
| time-finished | 2026-08-03 20:19:21 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp8ndywlav/qrencode-4.1.1-12.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8ndywlav/qrencode-4.1.1-12.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |