[WS2_32][DNSAPI]

- Avoid stack buffer overflow in ParseV4Address
CORE-11474

svn path=/trunk/; revision=74373
This commit is contained in:
Thomas Faber 2017-04-19 11:14:18 +00:00
parent 77ec221feb
commit 497a20b8a0
2 changed files with 2 additions and 0 deletions

View file

@ -460,6 +460,7 @@ again:
*/
if (*cp && *cp > ' ') return FALSE;
if (pp >= parts + 4) return FALSE;
*pp++ = val;
/*
* Concoct the address according to

View file

@ -148,6 +148,7 @@ again:
*/
if (*cp) return FALSE;
if (pp >= parts + 4) return FALSE;
*pp++ = val;
/*
* Concoct the address according to