mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-09 16:12:21 +00:00
V4L/DVB (4070): Zoran strncpy() fix
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>
This commit is contained in:
parent
5e87efa3b2
commit
845f16abad
2 changed files with 15 additions and 13 deletions
|
@ -14,7 +14,9 @@
|
|||
*/
|
||||
#ifndef __LINUX_VIDEODEV2_H
|
||||
#define __LINUX_VIDEODEV2_H
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/time.h> /* need struct timeval */
|
||||
#endif
|
||||
#include <linux/types.h>
|
||||
#include <linux/compiler.h> /* need __user */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue