Skip to contentSkip to conversation

PATCH: Undefined behavior in ISDN code

PATCH Urs Thuermann 1 participant 1 message Jan 22, 2002

lore
Share & tools
lore
#0 lore 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

drivers/isdn/isdn_audio.c +1 -1
diff -ru linux-2.4.17/drivers/isdn/isdn_audio.c linux/drivers/isdn/isdn_audio.c
@@ -228,7 +228,7 @@
 	:	"memory", "ax");
 #else
 	while (n--)
-		*buff++ = table[*(unsigned char *)buff];
+		*buff = table[*(unsigned char *)buff], buff++;
 #endif
 }