mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 17:24:20 +01:00
Merge remote-tracking branch 'upstream-public/pr/1406' into development-proposed
This commit is contained in:
commit
a7b34c7810
@ -403,7 +403,7 @@ int mbedtls_pem_read_buffer( mbedtls_pem_context *ctx, const char *header, const
|
|||||||
* The result will be ASN.1 starting with a SEQUENCE tag, with 1 to 3
|
* The result will be ASN.1 starting with a SEQUENCE tag, with 1 to 3
|
||||||
* length bytes (allow 4 to be sure) in all known use cases.
|
* length bytes (allow 4 to be sure) in all known use cases.
|
||||||
*
|
*
|
||||||
* Use that as heurisitic to try detecting password mismatchs.
|
* Use that as a heuristic to try to detect password mismatches.
|
||||||
*/
|
*/
|
||||||
if( len <= 2 || buf[0] != 0x30 || buf[1] > 0x83 )
|
if( len <= 2 || buf[0] != 0x30 || buf[1] > 0x83 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user