Describe the bug
Hi. I'm building ClamAV from source, from the main branch, in Debug configuration, on Debian 13 "Trixie". I'm getting a bunch of warnings about calloc transposed args. These occur in:
- libclamav/scanners.c:5763:46
- libclamav/pdf.c:342:25
- clamav-milter/connpool.c:212:29
- clambc/bcrun.c:405:51
- sigtool/sigtool.c, lines 223, 488, 2775, 3980
How to reproduce the problem
Build the code from main in Debug configuration.
build/install/bin/clamconf -n gives:
Checking configuration files in /home/stephengt/CodeProjects/clamav/build/install/etc
Config file: clamd.conf
-----------------------
PreludeEnable = "yes"
LogFile = "/home/stephengt/.tmp/clamd.log"
LogFileMaxSize = "2097152"
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
TemporaryDirectory = "/home/stephengt/.tmp"
CVDCertsDirectory = "/home/stephengt/CodeProjects/clamav/build/install/share/clamav/certs"
LocalSocket = "/home/stephengt/.tmp/clamd.sock"
LocalSocketMode = "660"
MaxThreads = "12"
ExcludePath = "^/proc/", "^/sys/", "^/dev/"
MaxDirectoryRecursion = "20"
ExitOnOOM = "yes"
Foreground = "yes"
DetectPUA = "yes"
HeuristicScanPrecedence = "yes"
ScanHTML disabled
ScanOLE2 disabled
AlertBrokenExecutables = "yes"
ScanPDF disabled
ScanSWF disabled
ScanXMLDOCS disabled
ScanHWP3 disabled
ScanOneNote disabled
ScanImage disabled
ScanImageFuzzyHash disabled
MaxScanTime = "2000000"
MaxScanSize = "2097152000"
MaxFileSize = "2097152000"
MaxRecursion = "2000000"
MaxFiles = "2000000"
MaxEmbeddedPE = "2097152000"
MaxHTMLNormalize = "2000000"
MaxHTMLNoTags = "2000000"
MaxScriptNormalize = "2000000"
MaxZipTypeRcg = "2000000"
MaxPartitions = "2000000"
MaxIconsPE = "2000000"
MaxRecHWP3 = "2000000"
PCREMatchLimit = "2000000"
PCRERecMatchLimit = "2000000"
PCREMaxFileSize = "2097152000"
OnAccessIncludePath = "/home/stephengt"
OnAccessExcludePath = "/home/stephengt/.cache/mozilla/firefox/<REDACTED>/safebrowsing", "/home/stephengt/.steam/steam.pid", "/home/stephengt/.tmp", "<REDACTED>"
OnAccessExcludeRootUID = "yes"
OnAccessExcludeUname = "clamav"
OnAccessPrevention = "yes"
OnAccessExtraScanning = "yes"
OnAccessMaxThreads = "11"
Config file: freshclam.conf
---------------------------
LogFileMaxSize = "2097152"
LogRotate = "yes"
CVDCertsDirectory = "/home/stephengt/CodeProjects/clamav/build/install/share/clamav/certs"
Foreground = "yes"
UpdateLogFile = "/home/stephengt/.tmp/freshclam.log"
DatabaseMirror = "database.clamav.net"
clamav-milter.conf not found
Software settings
-----------------
Version: 1.6.0-devel-20260611
Optional features supported: MEMPOOL AUTOIT_EA06 ICONV RAR
Database information
--------------------
Database directory: /home/stephengt/CodeProjects/clamav/build/install/share/clamav
daily.cvd: version 28028, sigs: 355466, built on Wed Jun 10 23:27:22 2026
main.cvd: version 63, sigs: 3287027, built on Tue Dec 16 15:18:22 2025
bytecode.cvd: version 339, sigs: 80, built on Thu Sep 11 05:29:19 2025
Total number of signatures: 3642573
Platform information
--------------------
uname: Linux 6.12.90+deb13.1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.90-2 (2026-05-27) x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 13 (trixie)
zlib version: 1.3.1 (1.3.1), compile flags: a9
platform id: 0x0a21f0f008000000000e0200
Build information
-----------------
GNU C: 14.2.0 (14.2.0)
sizeof(void*) = 8
Engine flevel: 240, dconf: 240
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.
Describe the bug
Hi. I'm building ClamAV from source, from the main branch, in Debug configuration, on Debian 13 "Trixie". I'm getting a bunch of warnings about calloc transposed args. These occur in:
How to reproduce the problem
Build the code from main in Debug configuration.
build/install/bin/clamconf -ngives: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.