You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is sufficient to check for the strongest limit only. Using a smaller
type ensures there is no overflow (assuming size_t is at least 32 bits).
FixesMbed-TLS#2916
Signed-off-by: irwir <irwir@users.noreply.github.com>
irwir
added a commit
to irwir/mbedtls
that referenced
this issue
Apr 21, 2020
It is sufficient to check for the strongest limit only. Using a smaller
type ensures there is no overflow (assuming size_t is at least 32 bits).
FixesMbed-TLS#2916
Signed-off-by: irwir <irwir@users.noreply.github.com>
https://github.com/ARMmbed/mbedtls/blob/7b6d8c27c8fcff9baf39792ff2c44faa87660b97/library/ssl_srv.c#L2972-L2974
The second check is pointless, It should be
if( end < p || (size_t)( end - p ) < 2 + dn_size )
The text was updated successfully, but these errors were encountered: