Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e43d403e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASN.1: Fix non-match detection failure on data overrun"

parents c852ffd0 dda3bb86
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -208,9 +208,8 @@ next_op:
		unsigned char tmp;

		/* Skip conditional matches if possible */
		if ((op & ASN1_OP_MATCH__COND &&
		     flags & FLAG_MATCHED) ||
		    dp == datalen) {
		if ((op & ASN1_OP_MATCH__COND && flags & FLAG_MATCHED) ||
		    (op & ASN1_OP_MATCH__SKIP && dp == datalen)) {
			pc += asn1_op_lengths[op];
			goto next_op;
		}