linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: fix the security leak in dmasound
@ 2003-07-11 18:12 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-11 18:12 UTC (permalink / raw)
  To: linux-kernel, torvalds

'ra1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.75/sound/oss/dmasound/dmasound_core.c linux-2.5.75-ac1/sound/oss/dmasound/dmasound_core.c
--- linux-2.5.75/sound/oss/dmasound/dmasound_core.c	2003-07-10 21:05:30.000000000 +0100
+++ linux-2.5.75-ac1/sound/oss/dmasound/dmasound_core.c	2003-07-11 16:30:15.000000000 +0100
@@ -351,8 +351,8 @@
 	    case SOUND_MIXER_INFO:
 		{
 		    mixer_info info;
-		    strlcpy(info.id, dmasound.mach.name2, sizeof(info.id));
-		    strlcpy(info.name, dmasound.mach.name2, sizeof(info.name));
+		    strncpy(info.id, dmasound.mach.name2, sizeof(info.id));
+		    strncpy(info.name, dmasound.mach.name2, sizeof(info.name));
 		    info.modify_counter = mixer.modify_counter;
 		    if (copy_to_user((int *)arg, &info, sizeof(info)))
 			    return -EFAULT;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-11 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-11 18:12 PATCH: fix the security leak in dmasound Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).