We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LTC_ASN1_SHORT_INTEGER
1 parent 8899c81 commit 3bf3dffCopy full SHA for 3bf3dff
1 file changed
src/pk/asn1/der/short_integer/der_decode_short_integer.c
@@ -42,6 +42,10 @@ int der_decode_short_integer(const unsigned char *in, unsigned long inlen, unsig
42
return CRYPT_INVALID_PACKET;
43
}
44
45
+ if (len > sizeof(unsigned long)) {
46
+ return CRYPT_OVERFLOW;
47
+ }
48
+
49
/* read number */
50
y = 0;
51
while (len--) {
0 commit comments