Merge pull request #2943 from JacobBarthelmeh/Testing

check on length of unwrap before memmove
This commit is contained in:
toddouska 2020-05-05 11:09:06 -07:00 committed by GitHub
commit 5e45767cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2683,6 +2683,9 @@ int ToTraditional_ex(byte* input, word32 sz, word32* algId)
if (length < 0)
return length;
if (length + inOutIdx > sz)
return BUFFER_E;
XMEMMOVE(input, input + inOutIdx, length);
return length;