fixed warning int/size_t
This commit is contained in:
parent
deb8c31951
commit
9da05dfb4f
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, Tomasz Sowa
|
* Copyright (c) 2012-2021, Tomasz Sowa
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -908,7 +908,7 @@ bool AES::DecodeCBC_PKCS7(std::vector<uint8> & content, const AES::uint8 * iv)
|
||||||
if( !DecodeCBC(content.data(), content.size(), iv) )
|
if( !DecodeCBC(content.data(), content.size(), iv) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int pad = content[content.size()-1];
|
size_t pad = content[content.size()-1];
|
||||||
|
|
||||||
if( pad > 16 || content.size() < pad )
|
if( pad > 16 || content.size() < pad )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue