Revert "catch case where blen%8 != 0"

This reverts commit 548ee347c0d3366a41e5fa28ac3c0b44b362fdb5.
This commit is contained in:
Steffen Jaeckel 2017-09-30 13:36:55 +02:00
parent d1d9566250
commit e5de0a0004

View File

@ -78,7 +78,7 @@ int der_decode_raw_bit_string(const unsigned char *in, unsigned long inlen,
blen = ((dlen - 1) << 3) - (in[x++] & 7);
/* too many bits? */
if ((blen + 7)/8 > *outlen) {
if (blen/8 > *outlen) {
*outlen = blen;
return CRYPT_BUFFER_OVERFLOW;
}