From c570beefbdbaa2c118ff79c18bf55904fd368cbc Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Tue, 23 Oct 2007 14:00:53 +0200 Subject: [PATCH] check the ssid length --- src/devices/wifi/ssid.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/wifi/ssid.cc b/src/devices/wifi/ssid.cc index 7aaae33d3..72659fe9f 100644 --- a/src/devices/wifi/ssid.cc +++ b/src/devices/wifi/ssid.cc @@ -126,6 +126,7 @@ Ssid::Deserialize (Buffer::Iterator i) uint8_t elementId = i.ReadU8 (); NS_ASSERT (elementId == ELEMENT_ID); m_length = i.ReadU8 (); + NS_ASSERT (m_length <= 32); i.Read (m_ssid, m_length); return i; }