Skip to content

Commit b24c7d3

Browse files
committed
LibGfx/JBIG2: Replace an accidentally-committed XXX with a FIXME
No behavior change.
1 parent 7040c62 commit b24c7d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

Userland/Libraries/LibGfx/ImageFormats/JBIG2Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)