mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 03:35:29 +00:00
Fix implementation-defined integer conversion
"When an integer is demoted to a signed integer with smaller size, or an unsigned integer is converted to its corresponding signed integer, if the value cannot be represented the result is implementation-defined."
This commit is contained in:
parent
1fbc5fb027
commit
5308f47038
|
@ -256,7 +256,7 @@ int x509_crt_verify_info( char *buf, size_t size, const char *prefix,
|
|||
* POLARSSL_ERR_X509_CERT_VERIFY_FAILED if the chain was verified
|
||||
* but found to be invalid, in which case *flags will have one
|
||||
* or more BADCERT_XXX or POLARSSL_X509_BADCRL_XXX
|
||||
* flags set, or another error (and flags set to 0xffffffff)
|
||||
* flags set, or another error (and flags set to -1)
|
||||
* in case of a fatal error encountered during the
|
||||
* verification process.
|
||||
*/
|
||||
|
|
|
@ -2182,7 +2182,7 @@ exit:
|
|||
|
||||
if( ret != 0 )
|
||||
{
|
||||
*flags = (uint32_t) -1;
|
||||
*flags = -1;
|
||||
return( ret );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue