can-bcm: fix minor heap overflow
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 10 Nov 2010 12:10:30 +0000 (12:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:10 +0000 (13:27 -0800)
commite2de51a1c73d762ee1b5246053b087e295f4a7e9
treec709345174e2828eea64586a9b61fe9fb544c520
parentf0c12133cff646d3ad1cb65f23c512169c85e65f
can-bcm: fix minor heap overflow

commit 0597d1b99fcfc2c0eada09a698f85ed413d4ba84 upstream.

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 <drosenberg@vsecurity.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
CC: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/can/bcm.c