Index: core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
diff --git a/core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp b/core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
index 72a9518ca956a5a14537f768d13aa421a3b67e67..1b5bd024f8ddb3684d89d1a1c29804b2495ceaee 100644 |
--- a/core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
+++ b/core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
@@ -248,9 +248,6 @@ CCodec_ScanlineDecoder* FPDFAPI_CreateFaxDecoder( |
if (Rows > USHRT_MAX) { |
Rows = 0; |
} |
- if (Columns <= 0 || Rows < 0 || Columns > USHRT_MAX || Rows > USHRT_MAX) { |
- return nullptr; |
- } |
} |
return CPDF_ModuleMgr::Get()->GetFaxModule()->CreateDecoder( |
src_buf, src_size, width, height, K, EndOfLine, ByteAlign, BlackIs1, |