bitstreamout: fix for crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-------------- next part --------------
--- 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; };

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux