diff options
| author | Daniel Mack <[email protected]> | 2009-12-16 05:12:58 +0100 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2009-12-21 11:32:24 -0500 |
| commit | 45b241689179a6065384260242637cf21dabfb2d (patch) | |
| tree | 6a5a89b3a98db2f1876b772e8d078e315e389f0b /include/linux/timerqueue.h | |
| parent | 77ca7d9e2c099b4484bb10075948b4267f37d9fa (diff) | |
Libertas: fix buffer overflow in lbs_get_essid()
The libertas driver copies the SSID buffer back to the wireless core and
appends a trailing NULL character for termination. This is
a) unnecessary because the buffer is allocated with kzalloc and is hence
already NULLed when this function is called, and
b) for priv->curbssparams.ssid_len == 32, it writes back one byte too
much which causes memory corruptions.
Fix this by removing the extra write.
Signed-off-by: Daniel Mack <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Maithili Hinge <[email protected]>
Cc: Kiran Divekar <[email protected]>
Cc: Michael Hirsch <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Holger Schurig <[email protected]>
Acked-by: Dan Williams <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions