mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
[WS2_32][DNSAPI]
- Avoid stack buffer overflow in ParseV4Address CORE-11474 svn path=/trunk/; revision=74373
This commit is contained in:
parent
77ec221feb
commit
497a20b8a0
2 changed files with 2 additions and 0 deletions
|
@ -460,6 +460,7 @@ again:
|
||||||
*/
|
*/
|
||||||
if (*cp && *cp > ' ') return FALSE;
|
if (*cp && *cp > ' ') return FALSE;
|
||||||
|
|
||||||
|
if (pp >= parts + 4) return FALSE;
|
||||||
*pp++ = val;
|
*pp++ = val;
|
||||||
/*
|
/*
|
||||||
* Concoct the address according to
|
* Concoct the address according to
|
||||||
|
|
|
@ -148,6 +148,7 @@ again:
|
||||||
*/
|
*/
|
||||||
if (*cp) return FALSE;
|
if (*cp) return FALSE;
|
||||||
|
|
||||||
|
if (pp >= parts + 4) return FALSE;
|
||||||
*pp++ = val;
|
*pp++ = val;
|
||||||
/*
|
/*
|
||||||
* Concoct the address according to
|
* Concoct the address according to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue