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 Dec 11, 2023
1 parent 42e4c85 commit 00b7853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamav/png.c
Original file line number Diff line number Diff line change
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 00b7853

Please sign in to comment.