Commit 5f960151 authored by Kai Germaschewski's avatar Kai Germaschewski Committed by Kai Germaschewski

[PATCH] 2.5.3 ISDN undefined behavior fix

the appended patch fixes a case of undefined behavior, found by
Urs Thuermann and "VDA".
parent 4de4ffaa
......@@ -227,8 +227,10 @@ isdn_audio_tlookup(const u_char *table, u_char *buff, unsigned long n)
: "0"((long) table), "1"(n), "2"((long) buff), "3"((long) buff)
: "memory", "ax");
#else
while (n--)
*buff++ = table[*(unsigned char *)buff];
while (n--) {
*buff = table[*buff];
buff++;
}
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment