mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PATCH: Undefined behavior in ISDN code
@ 2002-01-22 16:39 Urs Thuermann
  0 siblings, 0 replies; only message in thread
From: Urs Thuermann @ 2002-01-22 16:39 UTC (permalink / raw)
  To: lkml, Fritz Elfert

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
 }
 

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

only message in thread, other threads:[~2002-01-22 16:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-22 16:39 PATCH: Undefined behavior in ISDN code Urs Thuermann

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®