Home
last modified time | relevance | path

Searched hist:b4c23305 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mtd/
H A Dsm_ftl.cb4c23305 Thu Dec 05 08:53:50 CST 2013 Dan Carpenter <dan.carpenter@oracle.com> mtd: sm_ftl: heap corruption in sm_create_sysfs_attributes()

We always put a NUL terminator one space past the end of the "vendor"
buffer. Walter Harms also pointed out that this should just use
kstrndup().

Fixes: 7d17c02a01a1 ('mtd: Add new SmartMedia/xD FTL')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
b4c23305 Thu Dec 05 08:53:50 CST 2013 Dan Carpenter <dan.carpenter@oracle.com> mtd: sm_ftl: heap corruption in sm_create_sysfs_attributes()

We always put a NUL terminator one space past the end of the "vendor"
buffer. Walter Harms also pointed out that this should just use
kstrndup().

Fixes: 7d17c02a01a1 ('mtd: Add new SmartMedia/xD FTL')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>