Blame bind-9.5-CVE-2008-0122.patch
|
Adam Tkac |
bd2447 |
Index: lib/bind/inet/inet_network.c
|
|
Adam Tkac |
bd2447 |
===================================================================
|
|
Adam Tkac |
bd2447 |
RCS file: /var/snap/bind9/lib/bind/inet/inet_network.c,v
|
|
Adam Tkac |
bd2447 |
retrieving revision 1.5
|
|
Adam Tkac |
bd2447 |
retrieving revision 1.6
|
|
Adam Tkac |
bd2447 |
diff -u -r1.5 -r1.6
|
|
Adam Tkac |
bd2447 |
--- lib/bind/inet/inet_network.c 27 Apr 2005 04:56:21 -0000 1.5
|
|
Adam Tkac |
bd2447 |
+++ lib/bind/inet/inet_network.c 15 Jan 2008 04:02:01 -0000 1.6
|
|
Adam Tkac |
bd2447 |
@@ -84,9 +84,9 @@
|
|
Adam Tkac |
bd2447 |
}
|
|
Adam Tkac |
bd2447 |
if (!digit)
|
|
Adam Tkac |
bd2447 |
return (INADDR_NONE);
|
|
Adam Tkac |
bd2447 |
+ if (pp >= parts + 4 || val > 0xffU)
|
|
Adam Tkac |
bd2447 |
+ return (INADDR_NONE);
|
|
Adam Tkac |
bd2447 |
if (*cp == '.') {
|
|
Adam Tkac |
bd2447 |
- if (pp >= parts + 4 || val > 0xffU)
|
|
Adam Tkac |
bd2447 |
- return (INADDR_NONE);
|
|
Adam Tkac |
bd2447 |
*pp++ = val, cp++;
|
|
Adam Tkac |
bd2447 |
goto again;
|
|
Adam Tkac |
bd2447 |
}
|