mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 02:46:37 +00:00
2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is in range before dereferencing it. [backport candidate]
This commit is contained in:
parent
c898775c95
commit
330009f7b3
@ -1,3 +1,8 @@
|
|||||||
|
2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
|
* prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is
|
||||||
|
in range before dereferencing it.
|
||||||
|
|
||||||
2005-06-24 Pawel Worach <pawel.worach@gmail.com>
|
2005-06-24 Pawel Worach <pawel.worach@gmail.com>
|
||||||
|
|
||||||
* getopt.h: add further tests for full getopt declaration on
|
* getopt.h: add further tests for full getopt declaration on
|
||||||
|
@ -292,7 +292,7 @@ ip_masklen (struct in_addr netmask)
|
|||||||
pnt = (u_char *) &netmask;
|
pnt = (u_char *) &netmask;
|
||||||
end = pnt + 4;
|
end = pnt + 4;
|
||||||
|
|
||||||
while ((*pnt == 0xff) && pnt < end)
|
while ((pnt < end) && (*pnt == 0xff))
|
||||||
{
|
{
|
||||||
len+= 8;
|
len+= 8;
|
||||||
pnt++;
|
pnt++;
|
||||||
|
Loading…
Reference in New Issue
Block a user