Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 900331 Details for
Bug 1102662
dhcpd/dhcrelay segfault if interface name is longer than IFNAMSIZ
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fixed IFNAMSIZ.patch
dhcp-4.1.1-IFNAMSIZ.patch (text/plain), 1.48 KB, created by
Jiri Popelka
on 2014-05-29 12:09:15 UTC
(
hide
)
Description:
fixed IFNAMSIZ.patch
Filename:
MIME Type:
Creator:
Jiri Popelka
Created:
2014-05-29 12:09:15 UTC
Size:
1.48 KB
patch
obsolete
>diff -up dhcp-4.1.1-P1/relay/dhcrelay.c.ifnamsiz dhcp-4.1.1-P1/relay/dhcrelay.c >--- dhcp-4.1.1-P1/relay/dhcrelay.c.ifnamsiz 2014-05-29 13:44:30.000000000 +0200 >+++ dhcp-4.1.1-P1/relay/dhcrelay.c 2014-05-29 13:49:43.646958445 +0200 >@@ -245,14 +245,19 @@ main(int argc, char **argv) { > local_family_set = 1; > local_family = AF_INET; > #endif >+ if (++i == argc) { >+ usage(); >+ } >+ if (strlen(argv[i]) >= sizeof(tmp->name)) { >+ log_fatal("%s: interface name too long " >+ "(is %ld)", >+ argv[i], (long)strlen(argv[i])); >+ } > status = interface_allocate(&tmp, MDL); > if (status != ISC_R_SUCCESS) > log_fatal("%s: interface_allocate: %s", > argv[i], > isc_result_totext(status)); >- if (++i == argc) { >- usage(); >- } > strcpy(tmp->name, argv[i]); > interface_snorf(tmp, INTERFACE_REQUESTED); > interface_dereference(&tmp, MDL); >diff -up dhcp-4.1.1-P1/server/dhcpd.c.ifnamsiz dhcp-4.1.1-P1/server/dhcpd.c >--- dhcp-4.1.1-P1/server/dhcpd.c.ifnamsiz 2014-05-29 13:44:30.252444910 +0200 >+++ dhcp-4.1.1-P1/server/dhcpd.c 2014-05-29 13:47:24.267950077 +0200 >@@ -397,6 +397,10 @@ main(int argc, char **argv) { > } else { > struct interface_info *tmp = > (struct interface_info *)0; >+ if (strlen(argv[i]) >= sizeof(tmp->name)) >+ log_fatal("%s: interface name too long " >+ "(is %ld)", >+ argv[i], (long)strlen(argv[i])); > result = interface_allocate (&tmp, MDL); > if (result != ISC_R_SUCCESS) > log_fatal ("Insufficient memory to %s %s: %s",
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 1102662
: 900331