We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e81b08e commit ff9a6d3Copy full SHA for ff9a6d3
helpers.c
@@ -474,6 +474,10 @@ int is_content_type(PKCS7 *p7, const char *objid)
474
int ret;
475
476
indir_objid = OBJ_txt2obj(objid, 1);
477
+ if (!indir_objid) {
478
+ fprintf(stderr, "Invalid object identifier: %s\n", objid);
479
+ return 0; /* FAILED */
480
+ }
481
ret = p7 && PKCS7_type_is_signed(p7) &&
482
!OBJ_cmp(p7->d.sign->contents->type, indir_objid) &&
483
(p7->d.sign->contents->d.other->type == V_ASN1_SEQUENCE ||
0 commit comments