libtasn1-4.20.0-1.fc43
List of Findings
Error: COMPILER_WARNING: [#def1]
libtasn1-4.20.0/examples/pkix_asn1_tab.c:7:24: warning[-Wmissing-variable-declarations]: no previous declaration for 'pkix_asn1_tab'
Error: COMPILER_WARNING: [#def2]
libtasn1-4.20.0/lib/ASN1.c:73:25: warning[-Wmissing-variable-declarations]: no previous declaration for '_asn1_yynerrs'
libtasn1-4.20.0/lib/ASN1.c:1594:5: note: in expansion of macro 'yynerrs'
Error: COMPILER_WARNING: [#def3]
libtasn1-4.20.0/lib/ASN1.c:75:25: warning[-Wmissing-variable-declarations]: no previous declaration for '_asn1_yychar'
libtasn1-4.20.0/lib/ASN1.c:1589:5: note: in expansion of macro 'yychar'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
libtasn1-4.20.0/lib/ASN1.c:1715:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libtasn1-4.20.0/lib/ASN1.y:788:1: enter_function: entry to 'asn1_parser2array'
libtasn1-4.20.0/lib/ASN1.y:802:6: branch_false: following 'false' branch...
libtasn1-4.20.0/lib/ASN1.y:808:3: branch_false: ...to here
libtasn1-4.20.0/lib/ASN1.y:811:3: call_function: calling '_asn1_yyparse' from 'asn1_parser2array'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
libtasn1-4.20.0/lib/ASN1.c:1842:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
libtasn1-4.20.0/lib/ASN1.y:788:1: enter_function: entry to 'asn1_parser2array'
libtasn1-4.20.0/lib/ASN1.y:802:6: branch_false: following 'false' branch...
libtasn1-4.20.0/lib/ASN1.y:808:3: branch_false: ...to here
libtasn1-4.20.0/lib/ASN1.y:811:3: call_function: calling '_asn1_yyparse' from 'asn1_parser2array'
Error: CPPCHECK_WARNING (CWE-476): [#def6]
libtasn1-4.20.0/lib/ASN1.y:850: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_out_name
Error: CPPCHECK_WARNING (CWE-476): [#def7]
libtasn1-4.20.0/lib/ASN1.y:852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_out_name
Error: CPPCHECK_WARNING (CWE-476): [#def8]
libtasn1-4.20.0/lib/ASN1.y:853: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_out_name
Error: CPPCHECK_WARNING (CWE-476): [#def9]
libtasn1-4.20.0/lib/ASN1.y:867: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector_name
Error: CPPCHECK_WARNING (CWE-476): [#def10]
libtasn1-4.20.0/lib/ASN1.y:868: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector_name
Error: CPPCHECK_WARNING (CWE-476): [#def11]
libtasn1-4.20.0/lib/ASN1.y:869: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector_name
Error: CPPCHECK_WARNING (CWE-476): [#def12]
libtasn1-4.20.0/lib/ASN1.y:871: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector_name
Error: CPPCHECK_WARNING (CWE-476): [#def13]
libtasn1-4.20.0/lib/ASN1.y:874: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector_name
Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
libtasn1-4.20.0/lib/coding.c:758:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&tag_der'
libtasn1-4.20.0/lib/coding.c:1077:1: enter_function: entry to 'asn1_der_coding'
libtasn1-4.20.0/lib/coding.c:1091:6: branch_false: following 'false' branch...
libtasn1-4.20.0/lib/coding.c:1098:10: branch_false: ...to here
libtasn1-4.20.0/lib/coding.c:1099:6: branch_false: following 'false' branch...
libtasn1-4.20.0/lib/coding.c:1102:13: branch_false: ...to here
libtasn1-4.20.0/lib/coding.c:1104:6: branch_false: following 'false' branch...
libtasn1-4.20.0/lib/coding.c:1110:3: branch_false: ...to here
libtasn1-4.20.0/lib/coding.c:1119:10: branch_true: following 'true' branch (when 'move != 1')...
libtasn1-4.20.0/lib/coding.c:1121:11: branch_true: ...to here
libtasn1-4.20.0/lib/coding.c:1122:17: call_function: calling '_asn1_insert_tag_der' from 'asn1_der_coding'
Error: CPPCHECK_WARNING (CWE-190): [#def15]
libtasn1-4.20.0/lib/decoding.c:137: error[integerOverflow]: Signed integer overflow for expression '((((1?0:((1?0:(ans))+256))-1)<0)?~(((((1?0:((1?0:(ans))+256))+1)<<((sizeof((1?0:(ans))+256)*8)-2))-1)*2+1):((1?0:((1?0:(ans))+256))+0))/256'.
Error: CPPCHECK_WARNING (CWE-190): [#def16]
libtasn1-4.20.0/lib/decoding.c:204: error[integerOverflow]: Signed integer overflow for expression '((((1?0:((1?0:(ris))+128))-1)<0)?~(((((1?0:((1?0:(ris))+128))+1)<<((sizeof((1?0:(ris))+128)*8)-2))-1)*2+1):((1?0:((1?0:(ris))+128))+0))/128'.
Error: CPPCHECK_WARNING (CWE-190): [#def17]
libtasn1-4.20.0/lib/decoding.c:217: error[integerOverflow]: Signed integer overflow for expression '((((1?0:((1?0:(ris))+128))-1)<0)?~(((((1?0:((1?0:(ris))+128))+1)<<((sizeof((1?0:(ris))+128)*8)-2))-1)*2+1):((1?0:((1?0:(ris))+128))+0))/128'.
Error: COMPILER_WARNING: [#def18]
libtasn1-4.20.0/lib/parser_aux.c:32:6: warning[-Wmissing-variable-declarations]: no previous declaration for '_asn1_identifierMissing'
Error: GCC_ANALYZER_WARNING (CWE-835): [#def19]
libtasn1-4.20.0/lib/parser_aux.c:537:6: warning[-Wanalyzer-infinite-loop]: infinite loop
libtasn1-4.20.0/lib/parser_aux.c:1144:1: enter_function: entry to '_asn1_set_default_tag'
libtasn1-4.20.0/lib/parser_aux.c:1173:19: call_function: inlined call to '_asn1_find_up' from '_asn1_set_default_tag'
libtasn1-4.20.0/lib/parser_aux.c:1174:18: branch_true: ...to here
libtasn1-4.20.0/lib/parser_aux.c:1174:18: branch_false: if it ever follows 'false' branch, it will always do so...
libtasn1-4.20.0/lib/parser_aux.c:1179:18: branch_false: ...to here
libtasn1-4.20.0/lib/parser_aux.c:1179:18: branch_false: if it ever follows 'false' branch, it will always do so...
branch_false: ...to here
libtasn1-4.20.0/lib/parser_aux.c:1173:19: call_function: inlined call to '_asn1_find_up' from '_asn1_set_default_tag'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
libtasn1-4.20.0/lib/structure.c:458:11: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p_d'
libtasn1-4.20.0/lib/structure.c:1234:1: enter_function: entry to 'asn1_dup_node'
libtasn1-4.20.0/lib/structure.c:1236:10: call_function: calling '_asn1_copy_structure2' from 'asn1_dup_node'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
libtasn1-4.20.0/src/asn1Coding.c:344:31: warning[-Wanalyzer-null-dereference]: dereference of NULL 'der'
libtasn1-4.20.0/src/asn1Coding.c:207:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:215:6: branch_false: following 'false' branch (when 'inputFileAsnName' is non-NULL)...
libtasn1-4.20.0/src/asn1Coding.c:221:41: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:222:6: branch_false: following 'false' branch (when 'inputFileAssignmentName' is non-NULL)...
libtasn1-4.20.0/src/asn1Coding.c:229:5: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:248:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:256:15: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:258:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:268:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:270:10: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:301:6: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:301:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:306:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:314:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:325:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:326:6: branch_false: following 'false' branch (when 'asn1_result == 0')...
libtasn1-4.20.0/src/asn1Coding.c:342:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:343:15: branch_true: following 'true' branch...
libtasn1-4.20.0/src/asn1Coding.c:344:34: branch_true: ...to here
libtasn1-4.20.0/src/asn1Coding.c:344:34: release_memory: 'der' is NULL
libtasn1-4.20.0/src/asn1Coding.c:344:31: danger: dereference of NULL 'der + (sizetype)k'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libtasn1-4.20.0/src/asn1Coding.c:372:36: warning[-Wanalyzer-null-dereference]: dereference of NULL 'der'
libtasn1-4.20.0/src/asn1Coding.c:166:10: branch_false: following 'false' branch (when 'option_result != -1')...
libtasn1-4.20.0/src/asn1Coding.c:169:7: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:185:11: branch_true: following 'true' branch...
libtasn1-4.20.0/src/asn1Coding.c:186:28: branch_true: ...to here
libtasn1-4.20.0/src/asn1Coding.c:187:14: branch_false: following 'false' branch...
branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:207:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:215:6: branch_false: following 'false' branch (when 'inputFileAsnName' is non-NULL)...
libtasn1-4.20.0/src/asn1Coding.c:221:41: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:222:6: branch_false: following 'false' branch (when 'inputFileAssignmentName' is non-NULL)...
libtasn1-4.20.0/src/asn1Coding.c:229:5: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:248:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:256:15: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:258:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:268:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:301:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:306:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:314:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:325:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:326:6: branch_false: following 'false' branch (when 'asn1_result == 0')...
libtasn1-4.20.0/src/asn1Coding.c:342:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:343:15: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:345:3: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:350:6: branch_true: following 'true' branch (when 'checkSyntaxOnly == 0')...
libtasn1-4.20.0/src/asn1Coding.c:352:11: branch_true: ...to here
libtasn1-4.20.0/src/asn1Coding.c:352:10: branch_false: following 'false' branch...
libtasn1-4.20.0/src/asn1Coding.c:355:7: branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:359:10: branch_false: following 'false' branch...
branch_false: ...to here
libtasn1-4.20.0/src/asn1Coding.c:371:19: branch_true: following 'true' branch...
libtasn1-4.20.0/src/asn1Coding.c:372:39: branch_true: ...to here
libtasn1-4.20.0/src/asn1Coding.c:372:39: release_memory: 'der' is NULL
libtasn1-4.20.0/src/asn1Coding.c:372:36: danger: dereference of NULL 'der + (sizetype)k'
Error: CPPCHECK_WARNING (CWE-401): [#def23]
libtasn1-4.20.0/src/asn1Decoding.c:205: error[memleakOnRealloc]: Common realloc mistake: 'der' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-562): [#def24]
libtasn1-4.20.0/src/gl/gettext.h:254: error[returnDanglingLifetime]: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libtasn1-4.20.0/src/gl/read-file.c:62:46: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(fopen(filename, mode), flags, length)'
libtasn1-4.20.0/src/gl/read-file.c:190:1: enter_function: entry to 'read_file'
libtasn1-4.20.0/src/gl/read-file.c:196:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/gl/read-file.c:199:7: branch_false: ...to here
libtasn1-4.20.0/src/gl/read-file.c:202:9: acquire_memory: allocated here
libtasn1-4.20.0/src/gl/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libtasn1-4.20.0/src/gl/read-file.c:82:6: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(fopen(filename, mode), flags, length)'
libtasn1-4.20.0/src/gl/read-file.c:190:1: enter_function: entry to 'read_file'
libtasn1-4.20.0/src/gl/read-file.c:196:6: branch_false: following 'false' branch...
libtasn1-4.20.0/src/gl/read-file.c:199:7: branch_false: ...to here
libtasn1-4.20.0/src/gl/read-file.c:202:9: acquire_memory: allocated here
libtasn1-4.20.0/src/gl/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-27.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libtasn1-4.20.0-1.fc43 |
store-results-to | /tmp/tmp1hrcun9g/libtasn1-4.20.0-1.fc43.tar.xz |
time-created | 2025-04-25 14:15:29 |
time-finished | 2025-04-25 14:17:14 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp1hrcun9g/libtasn1-4.20.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1hrcun9g/libtasn1-4.20.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |