mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibCompress: Fix uninitialized member variable in Zlib, found by Coverity
This commit is contained in:
parent
ff0c7da75d
commit
82dbf76dee
Notes:
sideshowbarker
2024-07-19 03:31:27 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/82dbf76deea Pull-request: https://github.com/SerenityOS/serenity/pull/3184 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ Zlib::Zlib(ReadonlyBytes data)
|
|||
m_check_bits = flags & 0xF;
|
||||
m_has_dictionary = (flags >> 5) & 0x1;
|
||||
m_compression_level = (flags >> 6) & 0x3;
|
||||
m_checksum = 0;
|
||||
|
||||
ASSERT(m_compression_method == 8);
|
||||
ASSERT(m_compression_info == 7);
|
||||
|
|
Loading…
Reference in a new issue