diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-06 11:20:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-06 11:20:08 -0300 |
commit | 354ef895a4b1cfbfeeb15f4cee905b65ebfed738 (patch) | |
tree | eaf056d22e21629a5a53d75dfc0968aeee0e828f /linux/drivers/media/dvb/ttpci/av7110.h | |
parent | 70924af414b258c769a2ece2c64b7c9b14c18fc8 (diff) | |
download | mediapointer-dvb-s2-354ef895a4b1cfbfeeb15f4cee905b65ebfed738.tar.gz mediapointer-dvb-s2-354ef895a4b1cfbfeeb15f4cee905b65ebfed738.tar.bz2 |
Zoran strncpy() fix
From: Eric Sesterhenn <snakebyte@gmx.de>
The zoran driver uses strncpy() in an unsafe way. This patch uses the proper
sizeof()-1 size parameter. Since all strncpy() targets are initialised with
memset() the trailing '\0' is already set. Where std->name was the target for
the strncpy() we overwrote 8 Bytes of the std structure with zeros.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110.h')
0 files changed, 0 insertions, 0 deletions