mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Revert "LibGfx/CCITT: Don't overrun the image width"
This reverts commit a4b2e5b27b
.
This was just plain wrong, I remember it making sense and fixing
something but that was probably due to local changes. It should never
have landed on master, my bad.
This commit is contained in:
parent
227818de9b
commit
45b37010b5
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ ErrorOr<void> decode_single_ccitt3_1d_line(BigEndianInputBitStream& input_bit_st
|
|||
u32 run_length = 0;
|
||||
u32 column = 0;
|
||||
|
||||
while (column < image_width - 1) {
|
||||
while (column < image_width) {
|
||||
if (run_length > 0) {
|
||||
run_length--;
|
||||
TRY(decoded_bits.write_bits(current_color == ccitt_white ? 0u : 1u, 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue