Skip to content

Commit e6fb4c4

Browse files
committed
Silence PNG early end-of-file warning
While interesting, it does not appear this warning is useful to anyone.
1 parent 2f45c5f commit e6fb4c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libclamav/png.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cl_error_t cli_parsepng(cli_ctx *ctx)
137137
if (chunk_data_length > 0) {
138138
ptr = (uint8_t *)fmap_need_off_once(map, offset, chunk_data_length);
139139
if (NULL == ptr) {
140-
cli_warnmsg("PNG: Unexpected early end-of-file.\n");
140+
cli_dbgmsg("PNG: Unexpected early end-of-file.\n");
141141
if (SCAN_HEURISTIC_BROKEN_MEDIA) {
142142
status = cli_append_potentially_unwanted(ctx, "Heuristics.Broken.Media.PNG.EOFReadingChunk");
143143
}

0 commit comments

Comments
 (0)