File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Userland/Libraries/LibGfx/ImageFormats Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1910,6 +1910,7 @@ static ErrorOr<Vector<BilevelSubImage>> symbol_dictionary_decoding_procedure(Sym
19101910 // Decode the bitmap by reading this many bytes and treating it as HCHEIGHT rows of TOTWIDTH pixels, each
19111911 // row padded out to a byte boundary with 0-7 0 bits."
19121912 if (bitmap_size == 0 ) {
1913+ // FIXME: Validate that the pad bits are 0.
19131914 auto result = TRY (BilevelImage::create (total_width, height));
19141915 TRY (bit_stream->read_until_filled (result->bytes ()));
19151916 return result;
Original file line number Diff line number Diff line change @@ -1116,7 +1116,7 @@ static ErrorOr<ByteBuffer> symbol_dictionary_encoding_procedure(SymbolDictionary
11161116 //
11171117 // Decode the bitmap by reading this many bytes and treating it as HCHEIGHT rows of TOTWIDTH pixels, each
11181118 // row padded out to a byte boundary with 0-7 0 bits."
1119- TRY (bit_stream->write_until_depleted (image.bytes ())); // XXX zero padding
1119+ TRY (bit_stream->write_until_depleted (image.bytes ()));
11201120
11211121 // "5) Skip over any bits remaining in the last byte read."
11221122 TRY (bit_stream->align_to_byte_boundary ());
You can’t perform that action at this time.
0 commit comments