Skip to content

Commit 0c07bed

Browse files
Zaggy1024AtkinsSJ
authored andcommitted
LibVideo: Initialize VP9 BitStream's reservoir field
Leaving it uninitialized could lead to undefined behavior.
1 parent fef19aa commit 0c07bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibVideo/VP9/BitStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BitStream {
4747

4848
u8 const* m_data_ptr { nullptr };
4949
u8 const* m_end_ptr { nullptr };
50-
u64 m_reservoir;
50+
u64 m_reservoir { 0 };
5151
u8 m_reservoir_bits_remaining { 0 };
5252
size_t m_bits_read { 0 };
5353

0 commit comments

Comments
 (0)