diff --git a/libclamav/png.c b/libclamav/png.c index 4d16fe645e..bf3c8eb340 100644 --- a/libclamav/png.c +++ b/libclamav/png.c @@ -257,13 +257,6 @@ cl_error_t cli_parsepng(cli_ctx *ctx) /*------* | tRNS | *------*/ - - if (color_type == 3) { - if ((chunk_data_length > 256 || chunk_data_length > num_palette_entries) && !have_PLTE) { - status = cli_append_potentially_unwanted(ctx, "Heuristics.PNG.CVE-2004-0597"); - goto done; // always, even if allmatch mode means status comes back 'success' instead of 'virus'. - } - } } if (fmap_readn(map, &chunk_crc, offset, PNG_CHUNK_CRC_SIZE) != PNG_CHUNK_CRC_SIZE) {