mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 03:25:46 +01:00
Fix mis-sized buffer
Reported by rgacogne on twitter. Also spotted by gcc-4.8 with -O2
This commit is contained in:
parent
a7496f00ff
commit
34ced2dffe
@ -254,7 +254,7 @@ static int ssl_parse_ticket( ssl_context *ssl,
|
|||||||
unsigned char *enc_len_p = iv + 16;
|
unsigned char *enc_len_p = iv + 16;
|
||||||
unsigned char *ticket = enc_len_p + 2;
|
unsigned char *ticket = enc_len_p + 2;
|
||||||
unsigned char *mac;
|
unsigned char *mac;
|
||||||
unsigned char computed_mac[16];
|
unsigned char computed_mac[32];
|
||||||
size_t enc_len, clear_len, i;
|
size_t enc_len, clear_len, i;
|
||||||
unsigned char pad_len;
|
unsigned char pad_len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user