From patchwork Thu Sep 15 17:32:39 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Achim Tuffentsammer X-Patchwork-Id: 12025 Received: from smtp08.web.de ([217.72.192.226]) by www.linuxtv.org with esmtp (Exim 4.34) id 1EFxbl-0003IS-Bg for vdr@linuxtv.org; Thu, 15 Sep 2005 19:33:13 +0200 Received: from [84.151.35.203] (helo=[192.168.6.3]) by smtp08.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.105 #317) id 1EFxbG-0002Cl-00 for vdr@linuxtv.org; Thu, 15 Sep 2005 19:32:42 +0200 Message-ID: <4329B037.6010705@web.de> Date: Thu, 15 Sep 2005 19:32:39 +0200 From: Achim Tuffentsammer User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vdr@linuxtv.org Sender: a.tuffentsammer@web.de X-Sender: a.tuffentsammer@web.de Subject: [vdr] vdr-1.3.32 segfault when reading summary.vdr 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: Thu, 15 Sep 2005 17:33:13 -0000 Status: O X-Status: X-Keywords: X-UID: 4999 Hi list, I have a summary.vdr file from the old days which crashes vdr 1.3.32 when trying to read it. Attached is the summary.vdr file and a small patch to recording.c which prevents vdr from crashing. Achim Johnny Cash and Friends: A Concert Behind Prison Walls [Stereo] 1932 in Kingsland, Arkansas, geboren, erhielt Johnny Cash Ende 1954 seinen ersten Plattenvertrag. 1956 erreichte "I Walk the Line" die Top 20 der US-Pop-Charts. Auch mit seinem Album "Man in Black" gelang Johnny Cash 1971 ein legendäres Werk. 1980 wurde er als jüngster Künstler in die "Country Music Hall Of Fame" aufgenommen. Nach weniger erfolgreichen Jahren gelang dem Musiker 1994 ein grandioses Comeback: Mit dem Erstling seiner "American Recordings'-Reihe erhielt er als 62-Jähriger in Zusammenarbeit mit dem jungen Produzenten Rick Rubin einen "Grammy" für das beste Folkalbum des Jahres. Am 12. September 2003 starb Johnny Cash in Nashville/Tennessee. Johnny Cash, einer der einflussreichsten Musiker der letzten 50 Jahre, gewann mit seiner tiefen unverkennbaren Stimme zehn "Grammy Awards'.

3sat präsentiert ein Konzert, mit dem Johnny Cash 1976 Fernsehgeschichte schrieb: Zusammen mit Linda Ronstadt, Roy Clark und dem Komiker Foster Brooks trat er im Gefängnis in Nashville auf. Audio: Stereo Format: 4:3 --- recording-org.c 2005-09-15 19:25:49.000000000 +0200 +++ recording.c 2005-09-15 19:26:15.000000000 +0200 @@ -500,7 +500,7 @@ // 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: - int len = strlen(data[1]); + int len = ( data[1] ) ? strlen(data[1]) : 0; if (len > 80) { data[1] = (char *)realloc(data[1], len + 1 + strlen(data[2]) + 1); strcat(data[1], "\n");