From: Dan Carpenter Date: Thu, 6 Feb 2014 20:42:42 +0000 (+0300) Subject: staging: r8188eu: memory corruption handling long ssids X-Git-Tag: v3.14-rc3~12^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a081ea20e043f243b6fb9d50448cbe757fbb860;p=pandora-kernel.git staging: r8188eu: memory corruption handling long ssids We should cap the SSID length at NDIS_802_11_LENGTH_SSID (32) characters to avoid memory corruption. If the SSID is too long then I have opted to ignore it instead of truncating it. We don't need to clear bssid->Ssid.Ssid[0] because this struct is allocated with rtw_zmalloc() Signed-off-by: Dan Carpenter Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed