소스 검색

Revert "LibGfx/CCITT: Don't overrun the image width"

This reverts commit a4b2e5b27b27f7243b0e5bef139290837f9501bc.

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.
Lucas CHOLLET 1 년 전
부모
커밋
45b37010b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp

+ 1 - 1
Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp

@@ -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));