[vdr] bitstreamout: fix for crash

Dr. Werner Fink werner at suse.de
Thu Mar 24 22:14:57 CET 2005


On Thu, Mar 24, 2005 at 07:22:14PM +0100, Marcel Wiesweg wrote:
> 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; };

Oops .. thanks a lot.  This is the first report of such kind.

           Werner

-- 
AC3 loop through sound card http://bitstreamout.sourceforge.net/
Howto http://www.vdr-portal.de/board/thread.php?threadid=1958
------------------------------------------------------------------
 "Having a smoking section in a restaurant is like having
         a  peeing section in a swimming pool." -- Edward Burr



More information about the vdr mailing list