From patchwork Fri Sep 16 08:41:47 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thomas_G=C3=BCnther?= X-Patchwork-Id: 12029 Received: from moutng.kundenserver.de ([212.227.126.183]) by www.linuxtv.org with esmtp (Exim 4.34) id 1EGBnt-0004vf-6X for vdr@linuxtv.org; Fri, 16 Sep 2005 10:42:41 +0200 Received: from p54BD0DE3.dip0.t-ipconnect.de [84.189.13.227] (helo=vdr) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML2ov-1EGBnp0kjF-0005We; Fri, 16 Sep 2005 10:42:37 +0200 Received: from tom by vdr with local (Exim 3.36 #1 (Debian)) id 1EGBn1-00070B-00 for ; Fri, 16 Sep 2005 10:41:47 +0200 Date: Fri, 16 Sep 2005 10:41:47 +0200 From: Thomas =?ISO-8859-1?Q?G=FCnther?= To: Klaus Schmidinger's VDR Subject: Re: [vdr] VDR 1.3.32 crashes if recording date is in the future Message-Id: <20050916104147.5e1ac06c.tom1@toms-cafe.de> In-Reply-To: References: <432A7196.8020207@cadsoft.de> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Sender: =?iso-8859-1?Q?Thomas_G=C3=BCnther?= X-Provags-ID: kundenserver.de abuse@kundenserver.de login:0420603a5883296add7cedafc48e0fba X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 08:42:41 -0000 Status: O X-Status: X-Keywords: X-UID: 5012 hgm.bg wrote: > vdr-bounces@linuxtv.org wrote: > > It doesn't help: > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1208874400 (LWP 2948)] > 0x080cb1e3 in cRecording (this=0x8409ba8, > FileName=0x840efc4 > "Chaos_City/1x01_-_001_-_New_York_New_York_(Pilot)/2007-01-01.00.12.1 > 0.99.re c") at recording.c:506 > 506 data[1] = (char *)realloc(data[1], len + 1 + > strlen(data[2]) + 1); > Current language: auto; currently c++ Try with this patch: Tom --- vdr-1.3.32/recording.c 2005-09-11 19:02:51.000000000 +0200 +++ vdr-1.3.32/recording.c 2005-09-16 10:38:03.000000000 +0200 @@ -496,7 +496,7 @@ data[2] = data[1]; data[1] = NULL; } - else if (line == 2) { + else if (line == 2 && data[1] && data[2]) { // if line 1 is too long, it can't be the short text, // so assume the short text is missing and concatenate // line 1 and line 2 to be the long text: