1
0
Fork 0
alistair23-linux/drivers/media/dvb/ttusb-dec
Márton Németh b1858190fc V4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string
Use strlcat() to append a string to the previously created first part.

The semantic match that finds this kind of problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression dev;
expression phys;
expression str;
expression size;
@@
 	usb_make_path(dev, phys, size);
-	strlcpy(phys, str, size);
+	strlcat(phys, str, size);
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-12-05 18:41:45 -02:00
..
Kconfig V4L/DVB (10150): ttusb-dec: make it depend on PCI 2009-01-02 17:12:24 -02:00
Makefile V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS 2007-07-18 14:23:56 -03:00
ttusb_dec.c V4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string 2009-12-05 18:41:45 -02:00
ttusbdecfe.c V4L/DVB (9040): TTUSB-DEC DVB-S: claim to have lock 2008-10-12 09:37:08 -02:00
ttusbdecfe.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00