mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-10 08:56:28 +00:00
Fix integer suffix rejected by some MSVC versions
This commit is contained in:
@@ -354,7 +354,7 @@ int gcm_update( gcm_context *ctx,
|
||||
/* Total length is restricted to 2^39 - 256 bits, ie 2^36 - 2^5 bytes
|
||||
* Also check for possible overflow */
|
||||
if( ctx->len + length < ctx->len ||
|
||||
(uint64_t) ctx->len + length > 0x03FFFFE0llu )
|
||||
(uint64_t) ctx->len + length > 0x03FFFFE0ull )
|
||||
{
|
||||
return( POLARSSL_ERR_GCM_BAD_INPUT );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user