]> git.baikalelectronics.ru Git - kernel.git/commit
smbfs: read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 22 Sep 2009 23:43:28 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:27 +0000 (07:39 -0700)
commit9df320ec74b337ac6763e09f1051dfe9b27a1417
treeefd3abdc12b0c636a4dba94dbcab4bafc78423b8
parent4ae95625778843823495fdbeab9c1a05a4af08db
smbfs: read buffer overflow

This function uses signed integers for the unix_date and local variables -
if a negative number is supplied and the leap-year condition is not met,
month will be 0, leading to a read of day_n[-1]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/smbfs/proc.c