mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-31 23:26:45 +00:00
- Fixed memcpy() that had possible overlapping areas to memmove()
This commit is contained in:
parent
968bc9831b
commit
8934a98f82
|
@ -996,7 +996,7 @@ int ssl_read_record( ssl_context *ssl )
|
|||
*/
|
||||
ssl->in_msglen -= ssl->in_hslen;
|
||||
|
||||
memcpy( ssl->in_msg, ssl->in_msg + ssl->in_hslen,
|
||||
memmove( ssl->in_msg, ssl->in_msg + ssl->in_hslen,
|
||||
ssl->in_msglen );
|
||||
|
||||
ssl->in_hslen = 4;
|
||||
|
|
Loading…
Reference in a new issue