projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3584b
)
prism54: potential memory corruption in prism54_get_essid()
author
Dan Carpenter
<
[email protected]
>
Mon, 21 Nov 2011 14:47:13 +0000
(17:47 +0300)
committer
John W. Linville
<
[email protected]
>
Mon, 21 Nov 2011 19:45:21 +0000
(14:45 -0500)
"dwrq->length" is the capped version of "essid->length".
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/prism54/isl_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/prism54/isl_ioctl.c
b/drivers/net/wireless/prism54/isl_ioctl.c
index d97a2caf582b3997f2378434117758a928cefbd3..bc2ba80c47bb9ff0105d8ed2c119ab3b3589364e 100644
(file)
--- a/
drivers/net/wireless/prism54/isl_ioctl.c
+++ b/
drivers/net/wireless/prism54/isl_ioctl.c
@@
-778,7
+778,7
@@
prism54_get_essid(struct net_device *ndev, struct iw_request_info *info,
dwrq->flags = 0;
dwrq->length = 0;
}
- essid->octets[
essid
->length] = '\0';
+ essid->octets[
dwrq
->length] = '\0';
memcpy(extra, essid->octets, dwrq->length);
kfree(essid);