From 00b78531e3b37e1881a13024559bfaa4ad4d6087 Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Mon, 27 Nov 2023 22:36:20 -0500 Subject: [PATCH] Silence PNG early end-of-file warning While interesting, it does not appear this warning is useful to anyone. --- libclamav/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/png.c b/libclamav/png.c index bf3c8eb340..ac3bb8ed53 100644 --- a/libclamav/png.c +++ b/libclamav/png.c @@ -137,7 +137,7 @@ cl_error_t cli_parsepng(cli_ctx *ctx) if (chunk_data_length > 0) { ptr = (uint8_t *)fmap_need_off_once(map, offset, chunk_data_length); if (NULL == ptr) { - cli_warnmsg("PNG: Unexpected early end-of-file.\n"); + cli_dbgmsg("PNG: Unexpected early end-of-file.\n"); if (SCAN_HEURISTIC_BROKEN_MEDIA) { status = cli_append_potentially_unwanted(ctx, "Heuristics.Broken.Media.PNG.EOFReadingChunk"); }