sdk-ameba-v4.0b-gcc/component/common/network
Github Security Lab 0636e0a01b vallen is verified to be less than len, therefore, it can never
be the case that `vallen >= len + sizeof(rhostname)`.

This PR fixes the check so the `rhostname` array does not overflow.

Reported-by: Github Security Lab <securitylab@github.com>
Signed-off-by: Alvaro Muñoz <pwntester@github.com>
2020-03-08 01:10:37 +01:00
..
dhcp initial commit 2018-06-05 16:16:17 +03:00
httpc initial commit 2018-06-05 16:16:17 +03:00
httpd initial commit 2018-06-05 16:16:17 +03:00
lwip vallen is verified to be less than len, therefore, it can never 2020-03-08 01:10:37 +01:00
mDNS initial commit 2018-06-05 16:16:17 +03:00
sntp initial commit 2018-06-05 16:16:17 +03:00
ssl initial commit 2018-06-05 16:16:17 +03:00
websocket initial commit 2018-06-05 16:16:17 +03:00