From c9094aad186d641a11fb0eef3cba11d7ec1469f3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 20 Jul 2007 12:31:38 +0200 Subject: [PATCH] Fixed a buffer overflow in initializing the system character table --- CONTRIBUTORS | 1 + HISTORY | 5 +++++ config.h | 6 +++--- tools.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 30abdf99..ffd4c8f3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1401,6 +1401,7 @@ Marco Schl for removing 'assert(0)' from cDvbSpuDecoder::setTime() for adapting 'libsi' to DVB-S2 for fixing handling ChannelUp/Down keys if there is currently a replay running + for fixing a buffer overflow in initializing the system character table Jürgen Schmitz for reporting a bug in displaying the current channel when switching via the SVDRP diff --git a/HISTORY b/HISTORY index 6168579d..4f1a3685 100644 --- a/HISTORY +++ b/HISTORY @@ -5275,3 +5275,8 @@ Video Disk Recorder Revision History - Fixed stripping i18n stuff from font names (reported by Anssi Hannula). - Improved performance of the SVDRP commands LSTC and CHAN when used with a channel name. + +2007-07-20: Version 1.5.6 + +- Fixed a buffer overflow in initializing the system character table (thanks + to Marco Schlüßler). diff --git a/config.h b/config.h index aa4cfe87..5229d731 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.292 2007/06/23 09:06:24 kls Exp $ + * $Id: config.h 1.293 2007/07/20 12:31:38 kls Exp $ */ #ifndef __CONFIG_H @@ -22,8 +22,8 @@ // VDR's own version number: -#define VDRVERSION "1.5.5" -#define VDRVERSNUM 10505 // Version * 10000 + Major * 100 + Minor +#define VDRVERSION "1.5.6" +#define VDRVERSNUM 10506 // Version * 10000 + Major * 100 + Minor // The plugin API's version number: diff --git a/tools.c b/tools.c index edff762a..2e646d19 100644 --- a/tools.c +++ b/tools.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 1.130 2007/06/23 13:38:30 kls Exp $ + * $Id: tools.c 1.131 2007/07/16 15:23:28 kls Exp $ */ #include "tools.h" @@ -756,7 +756,7 @@ void cCharSetConv::SetSystemCharacterTable(const char *CharacterTable) 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;