archive mirror
 help / color / mirror / Atom feed
From: Alan Cox <>
Subject: PATCH: fix the security leak in dmasound
Date: Fri, 11 Jul 2003 19:12:18 +0100	[thread overview]
Message-ID: <> (raw)

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(, dmasound.mach.name2, sizeof(;
-		    strlcpy(, dmasound.mach.name2, sizeof(;
+		    strncpy(, dmasound.mach.name2, sizeof(;
+		    strncpy(, dmasound.mach.name2, sizeof(;
 		    info.modify_counter = mixer.modify_counter;
 		    if (copy_to_user((int *)arg, &info, sizeof(info)))
 			    return -EFAULT;

                 reply	other threads:[~2003-07-11 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).