From: Urs Thuermann <urs@isnogud.escape.de>
To: lkml <linux-kernel@vger.kernel.org>, Fritz Elfert <fritz@isdn4linux.de>
Subject: PATCH: Undefined behavior in ISDN code
Date: 22 Jan 2002 17:39:04 +0100 [thread overview]
Message-ID: <m2k7uamjbr.fsf@isnogud.escape.de> (raw)
I've already sent this patch a couple of years ago. Obviously, it got
lost, since the code in 2.4.17 still has the undefined behavior in it.
urs
diff -ru linux-2.4.17/drivers/isdn/isdn_audio.c linux/drivers/isdn/isdn_audio.c
--- linux-2.4.17/drivers/isdn/isdn_audio.c Sat Dec 22 07:54:42 2001
+++ linux/drivers/isdn/isdn_audio.c Tue Jan 22 16:31:53 2002
@@ -228,7 +228,7 @@
: "memory", "ax");
#else
while (n--)
- *buff++ = table[*(unsigned char *)buff];
+ *buff = table[*(unsigned char *)buff], buff++;
#endif
}
reply other threads:[~2002-01-22 16:40 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2k7uamjbr.fsf@isnogud.escape.de \
--to=urs@isnogud.escape.de \
--cc=fritz@isdn4linux.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
all inboxes | Powered by JetHome®