Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142675811
D21523.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D21523.id.diff
View Options
Index: head/lib/libc/nameser/ns_name.c
===================================================================
--- head/lib/libc/nameser/ns_name.c
+++ head/lib/libc/nameser/ns_name.c
@@ -684,7 +684,7 @@
{
const u_char *cp;
u_int n;
- int l;
+ int l = 0;
cp = *ptrptr;
while (cp < eom && (n = *cp++) != 0) {
@@ -694,7 +694,7 @@
cp += n;
continue;
case NS_TYPE_ELT: /*%< EDNS0 extended label */
- if ((l = labellen(cp - 1)) < 0) {
+ if (cp < eom && (l = labellen(cp - 1)) < 0) {
errno = EMSGSIZE; /*%< XXX */
return (-1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 3:27 AM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27873465
Default Alt Text
D21523.id.diff (558 B)
Attached To
Mode
D21523: Test for ns_parserr() and got a heap-buffer-overflow
Attached
Detach File
Event Timeline
Log In to Comment