1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:57:45 +00:00

gunzip+LibCompress: Increase buffer sizes used by Deflate and gunzip

Co-authored-by: Andreas Kling <kling@serenityos.org>
This commit is contained in:
Timothy Flynn 2023-03-30 14:01:07 -04:00 committed by Andreas Kling
parent 62b575ad7c
commit 9f238793e0
3 changed files with 5 additions and 5 deletions

View file

@ -436,7 +436,7 @@ ErrorOr<void> DeflateDecompressor::decode_codes(CanonicalCode& literal_code, Opt
// Next we extract the code lengths of the code that was used to encode the block.
Vector<u8> code_lengths;
Vector<u8, 286> code_lengths;
while (code_lengths.size() < literal_code_count + distance_code_count) {
auto symbol = TRY(code_length_code.read_symbol(*m_input_stream));

View file

@ -38,8 +38,8 @@ private:
};
// Decompression - indexed by code
Vector<u16> m_symbol_codes;
Vector<u16> m_symbol_values;
Vector<u16, 286> m_symbol_codes;
Vector<u16, 286> m_symbol_values;
Array<PrefixTableEntry, 1 << max_allowed_prefixed_code_length> m_prefix_table {};
size_t m_max_prefixed_code_length { 0 };