From patchwork Thu Mar 24 18:22:14 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Wiesweg X-Patchwork-Id: 11820 Received: from pop.gmx.net ([213.165.64.20] helo=mail.gmx.net) by www.linuxtv.org with smtp (Exim 4.34) id 1DEWya-0001gu-5r for vdr@linuxtv.org; Thu, 24 Mar 2005 19:22:36 +0100 Received: (qmail invoked by alias); 24 Mar 2005 18:22:17 -0000 Received: from p508A8E97.dip0.t-ipconnect.de (EHLO [192.168.0.8]) [80.138.142.151] by mail.gmx.net (mp002) with SMTP; 24 Mar 2005 19:22:17 +0100 X-Authenticated: #3446302 From: Marcel Wiesweg To: vdr@linuxtv.org Date: Thu, 24 Mar 2005 19:22:14 +0100 User-Agent: KMail/1.8 MIME-Version: 1.0 Message-Id: <200503241922.14894.marcel.wiesweg@gmx.de> X-Y-GMX-Trusted: 0 Subject: [vdr] bitstreamout: fix for crash 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, 24 Mar 2005 18:22:36 -0000 Status: O X-Status: X-Keywords: X-UID: 1059 Hi, the attached patch fixes an uninitialized value which made for nasty and reliable crashes on my machine. Strange no one came across this one before. Marcel --- bytes.h_orig 2005-03-24 18:46:37.308704736 +0100 +++ bytes.h 2005-03-24 18:47:12.205399632 +0100 @@ -55,5 +55,5 @@ } public: - cHandle(const uint_8 *buf, size_t len) : curr(buf), avail(len), ex(1) {}; + cHandle(const uint_8 *buf, size_t len) : curr(buf), avail(len), offset(0), ex(1) {}; inline operator uint_8 () { return check(1) ? *curr : 0; }; inline operator uint_16 () { return check(2) ? ntohs(*((const uint_16*)curr)) : 0; };