/[pkgs]/devel/dhcp/dhcp-4.1.0-IFNAMSIZ.patch
ViewVC logotype

Contents of /devel/dhcp/dhcp-4.1.0-IFNAMSIZ.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Apr 21 02:39:32 2009 UTC (7 months ago) by dcantrel
Branch: MAIN
CVS Tags: F-12-split, dhcp-4_1_0-22_fc12, dhcp-4_1_0-20_fc12, dhcp-4_1_0p1-5_fc12, dhcp-4_1_0p1-13_fc13, dhcp-4_1_0p1-11_fc12, dhcp-4_1_0p1-6_fc12, dhcp-4_1_0p1-7_fc12, dhcp-4_1_0p1-8_fc12, dhcp-4_1_0p1-4_fc12, dhcp-4_1_0p1-14_fc13, dhcp-4_1_0-23_fc12, dhcp-4_1_0-19_fc12, dhcp-4_1_0p1-1_fc12, dhcp-4_1_0p1-3_fc12, dhcp-4_1_0p1-9_fc12, dhcp-4_1_0p1-12_fc13, dhcp-4_1_0-26_fc12, dhcp-4_1_0p1-10_fc12, dhcp-4_1_0-25_fc12, dhcp-4_1_0-24_fc12, dhcp-4_1_0-27_fc12, dhcp-4_1_0-21_fc12, dhcp-4_1_0p1-2_fc12, HEAD
File MIME type: text/x-patch
* Mon Apr 20 2009 David Cantrell <dcantrell@redhat.com> - 12:4.1.0-19
- Restrict interface names given on the dhcpd command line to length
  IFNAMSIZ or shorter (#441524)
1 diff -up dhcp-4.1.0/server/dhcpd.c.ifnamsiz dhcp-4.1.0/server/dhcpd.c
2 --- dhcp-4.1.0/server/dhcpd.c.ifnamsiz 2009-04-20 16:35:30.000000000 -1000
3 +++ dhcp-4.1.0/server/dhcpd.c 2009-04-20 15:45:15.000000000 -1000
4 @@ -401,7 +401,7 @@ main(int argc, char **argv) {
5 log_fatal ("Insufficient memory to %s %s: %s",
6 "record interface", argv [i],
7 isc_result_totext (result));
8 - strcpy (tmp -> name, argv [i]);
9 + strncpy (tmp -> name, argv [i], sizeof (tmp -> name));
10 if (interfaces) {
11 interface_reference (&tmp -> next,
12 interfaces, MDL);

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2