From 6d18d4ecc3700fae73bfa198cdb72ff5ba3ae2af Mon Sep 17 00:00:00 2001 From: leitner Date: Wed, 23 Apr 2014 13:44:52 +0000 Subject: [PATCH] better comment --- scan/scan_asn1derlength.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/scan_asn1derlength.c b/scan/scan_asn1derlength.c index eed503b..db1d65c 100644 --- a/scan/scan_asn1derlength.c +++ b/scan/scan_asn1derlength.c @@ -12,7 +12,7 @@ size_t scan_asn1derlengthvalue(const char* src,size_t len,unsigned long long* va c&=0x7f; if (!c) return 0; /* length 0x80 means indefinite length encoding, not supported here */ l=(unsigned char)src[1]; - if (l==0) return 0; /* not minimally encoded: 0x81 0x00 instead of 0x00 */ + if (l==0) return 0; /* not minimally encoded: 0x82 0x00 0xc2 instead of 0x81 0xc2 */ if (c>sizeof(l)) return 0; /* too many bytes, does not fit into target integer type */ if (c+1>len) return 0; /* not enough data in input buffer */ for (i=2; i<=c; ++i)