Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
index 8f5871df7f11f19788719eb73e2acad5cbd03dda..691981cb10b5a96627513e69c912f98ac9d8ea24 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp |
@@ -40,9 +40,6 @@ FX_DWORD _A85Decode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_LPBYTE& dest_b |
return (FX_DWORD) - 1; |
} |
dest_buf = FX_Alloc(FX_BYTE, zcount * 4 + (pos - zcount)); |
- if (dest_buf == NULL) { |
- return (FX_DWORD) - 1; |
- } |
int state = 0; |
FX_UINT32 res = 0; |
pos = dest_size = 0; |
@@ -153,9 +150,6 @@ FX_DWORD RunLengthDecode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_LPBYTE& d |
return -1; |
} |
dest_buf = FX_Alloc( FX_BYTE, dest_size); |
- if (!dest_buf) { |
- return -1; |
- } |
i = 0; |
int dest_count = 0; |
while (i < src_size) { |