summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_ip6.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-31 18:30:11 +0300
committerDavid S. Miller <davem@davemloft.net>2014-07-31 22:14:54 -0700
commit7bcc6738eef36e7139c4293c321bc43f716e8d85 (patch)
tree669276e7cbc4f83d0c79d77ef2cff9dcc318fef4 /net/l2tp/l2tp_ip6.c
parente98d69ba464868a5d6b0b43730658810a29ff825 (diff)
downloadlinux-7bcc6738eef36e7139c4293c321bc43f716e8d85.tar.bz2
ISDN: pcbit: off by one bugs in pcbit_set_msn()
1) We don't allocate enough space for the NUL terminator so we end up corrupting one character beyond the end of the buffer. 2) The "len - 1" should just be "len". The code is trying to copy a word from a buffer up to a comma or the last word in the buffer. Say you have the buffer, "foo,bar,baz", then this code truncates the last letter off each word so you get "fo", "ba", and "ba". You would hope this kind of bug would get noticed in testing... I'm not very familiar with this code and I can't test it, but I think we should copy the final character. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_ip6.c')
0 files changed, 0 insertions, 0 deletions