FreeBSD Bugzilla – Attachment 7939 Details for
Bug 16900
Bad error flagging in natd(8) config file read
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 585 bytes, created by
Crist J. Clark
on 2000-02-22 04:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Crist J. Clark
Created:
2000-02-22 04:30:00 UTC
Size:
585 bytes
patch
obsolete
>--- /usr/src/sbin/natd/natd.c Fri Jan 28 04:02:05 2000 >+++ natd.c Mon Feb 21 23:12:32 2000 >@@ -1262,8 +1262,11 @@ > while (fgets (buf, sizeof (buf), file)) { > > ptr = strchr (buf, '\n'); >- if (!ptr) >- errx (1, "config line too long: %s", buf); >+ if (!ptr) { >+ ptr = strchr (buf, '\0'); >+ if ( ptr && ( ( ptr - buf + 1 ) == sizeof (buf) ) ) >+ errx (1, "config line too long: %s", buf); >+ } > > *ptr = '\0';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16900
: 7939