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:
6c4f199
)
can-bcm: fix minor heap overflow
author
Oliver Hartkopp
<
[email protected]
>
Wed, 10 Nov 2010 12:10:30 +0000
(12:10 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 12 Nov 2010 22:07:14 +0000
(14:07 -0800)
On 64-bit platforms the ASCII representation of a pointer may be up to 17
bytes long. This patch increases the length of the buffer accordingly.
http://marc.info/?l=linux-netdev&m=
128872251418192
&w=2
Reported-by: Dan Rosenberg <
[email protected]
>
Signed-off-by: Oliver Hartkopp <
[email protected]
>
CC: Linus Torvalds <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/can/bcm.c
patch
|
blob
|
history
diff --git
a/net/can/bcm.c
b/net/can/bcm.c
index 08ffe9e4be20aa49ab2bba82c36c5e988a4880fd..6faa8256e10ca22d6fb0b2005d74c5c5580a404d 100644
(file)
--- a/
net/can/bcm.c
+++ b/
net/can/bcm.c
@@
-125,7
+125,7
@@
struct bcm_sock {
struct list_head tx_ops;
unsigned long dropped_usr_msgs;
struct proc_dir_entry *bcm_proc_read;
- char procname [
9
]; /* pointer printed in ASCII with \0 */
+ char procname [
20
]; /* pointer printed in ASCII with \0 */
};
static inline struct bcm_sock *bcm_sk(const struct sock *sk)