Skip to content

Commit

Permalink
Merge pull request #146 from g-maxime/bt
Browse files Browse the repository at this point in the history
BitStream_LE: Fix use of uninitialised values
  • Loading branch information
JeromeMartinez authored Jan 12, 2023
2 parents 21d65ab + d9050ca commit 1764836
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Source/ZenLib/BitStream_LE.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ namespace ZenLib
class BitStream_LE : public BitStream
{
public:
BitStream_LE () :BitStream() {};
BitStream_LE (const int8u* Buffer_, size_t Size_) :BitStream(Buffer_, Size_) {};
BitStream_LE () :BitStream()
{
endbyte=0;
endbit=0;
buffer=NULL;
ptr=NULL;
storage=0;
};

BitStream_LE (const int8u* Buffer_, size_t Size_) :BitStream(Buffer_, Size_) {
Attach(Buffer_, Size_);
};

void Attach(const int8u* Buffer_, size_t Size_)
{
Expand Down

0 comments on commit 1764836

Please sign in to comment.