New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
message "LibClamAV Warning: PNG: Unexpected early end-of-file." #1208
Comments
We changed this warning to a debug-level in the 1.3 release: 00b7853 Perhaps we should backport it for the next 1.0 patch version. |
I'm seeing this as a test failure on arm in 1.0.5: https://bugs.gentoo.org/show_bug.cgi?id=927361
Related or do you need me to file a new issue? |
@Kangie it seems related but different. The message may occur on truncated (but functional and non-malicious) PNG files. As a result, it seems to be a nuisance to users. But it could be there is a bug in our PNG parser causing this error and a crash on some arm systems? Is this 32bit arm (not arm64?). I see your note that "error -7 -> E2BIG so this could be a 32-bit data type size issue." |
Describe the bug
I run /usr/bin/clamscan on a Rocky 9.3 system (aka RHEL9) and get the message ""LibClamAV Warning: PNG: Unexpected early end-of-file.". This is not really a "bug" per se, but the lack of announcing which file popped this error means there is no information to check what is causing this. The only way I have found is to run in verbose mode and that is an incredibly inefficient way to deal with it as it seems that it would be easy for clamscan to give the name of the file when it flags the warning
I see lots of references to this online but nothing that I can ascertain is ClamAV's response to people going (liberally paraphrased) "huh?"
Thanks in advance for considering providing this info
How to reproduce the problem
See "Describe the bug" but obviously need to have some file which will produce that warning
Replace this text with the output from the ClamAV command:
+++ START +++
[paul@grotto ~]$ clamconf -n
Checking configuration files in /etc
Config file: clamd.d/scan.conf
LogSyslog = "yes"
User = "clamscan"
freshclam.conf not found
mail/clamav-milter.conf not found
Software settings
Version: 1.0.5
Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 ICONV JSON
Database information
Database directory: /var/lib/clamav
main.cvd: version 62, sigs: 6647427, built on Thu Sep 16 05:32:42 2021
daily.cld: version 27219, sigs: 2055706, built on Tue Mar 19 01:25:53 2024
bytecode.cld: version 335, sigs: 86, built on Tue Feb 27 07:37:24 2024
Total number of signatures: 8703219
Platform information
uname: Linux 5.14.0-362.24.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 13 17:33:16 UTC 2024 x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
zlib version: 1.2.11 (1.2.11), compile flags: a9
platform id: 0x0a21a5a508000000020b0401
Build information
GNU C: 11.4.1 20230605 (Red Hat 11.4.1-2) (11.4.1)
sizeof(void*) = 8
Engine flevel: 165, dconf: 165
[paul@grotto ~]$
+++ END ++
Attachments
If applicable, add screenshots to help explain your problem.
If the issue is reproducible only when scanning a specific file, attach it to the ticket.
The text was updated successfully, but these errors were encountered: