Skip to content

Commit

Permalink
Silence PNG early end-of-file warning
Browse files Browse the repository at this point in the history
While interesting, it does not appear this warning is useful to anyone.
  • Loading branch information
micahsnyder committed Nov 28, 2023
1 parent 48e59e8 commit 2633cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamav/png.c
Expand Up @@ -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");
}
Expand Down

0 comments on commit 2633cbc

Please sign in to comment.