Buffer overflow in initializing character table
Commit Message
Marco Schlüßler has sent me the attached patch that fixes a
buffer overflow in initializing VDR's character table.
Since I'll be away from home for another two weeks and this
might be a problem for others, too, I'm posting it here before
the next official developer version.
Klaus
@@ -756,7 +756,7 @@
char buf[129];
for (int i = 0; i < 128; i++)
buf[i] = i + 128;
- buf[129] = 0;
+ buf[128] = 0;
cCharSetConv csc(CharacterTable);
const char *s = csc.Convert(buf);
int i = 0;