File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1016,7 +1016,7 @@ int wolfSSL_ASN1_INTEGER_get_length(const WOLFSSL_ASN1_INTEGER* ai)
10161016 if (ai -> data [0 ] == ASN_INTEGER ) {
10171017 word32 idx = 1 ;
10181018 int len = 0 ;
1019- if (GetLength (ai -> data , & idx , & len , (word32 )ai -> length ) > 0 &&
1019+ if (GetLength (ai -> data , & idx , & len , (word32 )ai -> length ) >= 0 &&
10201020 idx + (word32 )len == (word32 )ai -> length ) {
10211021 return len ;
10221022 }
@@ -1043,7 +1043,7 @@ const unsigned char* wolfSSL_ASN1_INTEGER_get0_data(const WOLFSSL_ASN1_INTEGER*
10431043 if (ai -> data [0 ] == ASN_INTEGER ) {
10441044 word32 idx = 1 ;
10451045 int len = 0 ;
1046- if (GetLength (ai -> data , & idx , & len , (word32 )ai -> length ) > 0 &&
1046+ if (GetLength (ai -> data , & idx , & len , (word32 )ai -> length ) >= 0 &&
10471047 idx + (word32 )len == (word32 )ai -> length ) {
10481048 return ai -> data + idx ;
10491049 }
You can’t perform that action at this time.
0 commit comments