[pkg-wpa-devel] r1180 - in /wpasupplicant/trunk/debian: changelog patches/15_silence_out_of_bounds_warnings.patch patches/series
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Thu Jun 5 15:11:40 UTC 2008
Author: kelmo-guest
Date: Thu Jun 5 15:11:40 2008
New Revision: 1180
URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1180
Log:
Add 15_silence_out_of_bounds_warnings.patch to silence gcc-4.3 warnings
about accessing out of bounds array index.
Added:
wpasupplicant/trunk/debian/patches/15_silence_out_of_bounds_warnings.patch
Modified:
wpasupplicant/trunk/debian/changelog
wpasupplicant/trunk/debian/patches/series
Modified: wpasupplicant/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/debian/changelog?rev=1180&op=diff
==============================================================================
--- wpasupplicant/trunk/debian/changelog (original)
+++ wpasupplicant/trunk/debian/changelog Thu Jun 5 15:11:40 2008
@@ -44,8 +44,10 @@
switching for mac80211 using interfaces.
* Add 53_give_adhoc_assoc_more_time.patch to give adhoc associations a bit
more time.
-
- -- Kel Modderman <kel at otaku42.de> Thu, 05 Jun 2008 21:19:03 +1000
+ * Add 15_silence_out_of_bounds_warnings.patch to silence gcc-4.3 warnings
+ about accessing out of bounds array index.
+
+ -- Kel Modderman <kel at otaku42.de> Fri, 06 Jun 2008 01:10:41 +1000
wpasupplicant (0.6.3-1) unstable; urgency=low
Added: wpasupplicant/trunk/debian/patches/15_silence_out_of_bounds_warnings.patch
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/debian/patches/15_silence_out_of_bounds_warnings.patch?rev=1180&op=file
==============================================================================
--- wpasupplicant/trunk/debian/patches/15_silence_out_of_bounds_warnings.patch (added)
+++ wpasupplicant/trunk/debian/patches/15_silence_out_of_bounds_warnings.patch Thu Jun 5 15:11:40 2008
@@ -1,0 +1,28 @@
+From: Jouni Malinen <j at w1.fi>
+Date: Thu, 5 Jun 2008 14:50:53 +0000 (+0300)
+Subject: Silence compiler warnings about out of array bounds indexes
+X-Git-Url: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff_plain;h=4fba48a5a7d367e86cdd29b6f004dcdb63e6b279
+
+Silence compiler warnings about out of array bounds indexes
+
+struct wpa_ie_hdr had separate fields for 24-bit OUI and 8-bit oui_type
+for WPA/RSN selectors. {WPA,RSN}_SELECTOR_{GET,PUT} access these four
+octets through oui and the "out-of-bounds" access for the fourth octet is
+actually reading/writing oui_type. This works fine, but some tools complain
+about the array bounds "failure". Since oui_type is never accessed
+separately, the simplest fix is to just combine these into a single 4-octet
+field.
+---
+
+--- a/src/common/wpa_common.h
++++ b/src/common/wpa_common.h
+@@ -188,8 +188,7 @@
+ struct wpa_ie_hdr {
+ u8 elem_id;
+ u8 len;
+- u8 oui[3];
+- u8 oui_type;
++ u8 oui[4]; /* 24-bit OUI followed by 8-bit OUI type */
+ u8 version[2]; /* little endian */
+ } STRUCT_PACKED;
+
Modified: wpasupplicant/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/debian/patches/series?rev=1180&op=diff
==============================================================================
--- wpasupplicant/trunk/debian/patches/series (original)
+++ wpasupplicant/trunk/debian/patches/series Thu Jun 5 15:11:40 2008
@@ -8,6 +8,7 @@
12_fix_potential_use_after_free.patch
13_defined_IEEE8021X_EAPOL.patch
14_fix_compile_without_eap.patch
+15_silence_out_of_bounds_warnings.patch
20_wpa_gui_qt4_disable_link_prl.patch
41_manpage_format_fixes.patch
42_manpage_explain_available_drivers.patch
More information about the Pkg-wpa-devel
mailing list