PATCH: fix security leak in msnd_pinnacle.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 11 Jul 2003 19:16:00 +0100


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.75/sound/oss/msnd_pinnacle.c linux-2.5.75-ac1/sound/oss/msnd_pinnacle.c
--- linux-2.5.75/sound/oss/msnd_pinnacle.c 2003-07-10 21:11:33.000000000 +0100
+++ linux-2.5.75-ac1/sound/oss/msnd_pinnacle.c 2003-07-11 16:28:08.000000000 +0100
@@ -555,8 +555,8 @@
}

#define set_mixer_info() \
- strlcpy(info.id, "MSNDMIXER", sizeof(info.id)); \
- strlcpy(info.name, "MultiSound Mixer", sizeof(info.name));
+ strncpy(info.id, "MSNDMIXER", sizeof(info.id)); \
+ strncpy(info.name, "MultiSound Mixer", sizeof(info.name));

static int mixer_ioctl(unsigned int cmd, unsigned long arg)
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/