lkml.org 
[lkml]   [2002]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectPATCH: Undefined behavior in ISDN code
From
Date
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
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.120 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site