We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 062fc3f commit 0b04279Copy full SHA for 0b04279
1 file changed
src/pk/asn1/der/bit/der_decode_raw_bit_string.c
@@ -77,7 +77,7 @@ int der_decode_raw_bit_string(const unsigned char *in, unsigned long inlen,
77
blen = ((dlen - 1) << 3) - (in[x++] & 7);
78
79
/* too many bits? */
80
- if (blen > *outlen) {
+ if (blen/8 > *outlen) {
81
*outlen = blen;
82
return CRYPT_BUFFER_OVERFLOW;
83
}
0 commit comments