Output of valgrind below. Whilst it doesn't seg fault, clearly zlib is having difficulties.
[EMAIL PROTECTED] test]$ valgrind --num-callers=9 --leak-check=yes clamscan --mbox /home/njh/src/njh/mime/test/clam-seg-fault-file.txt ==13922== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==13922== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==13922== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==13922== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==13922== Estimated CPU clock rate is 867 MHz ==13922== For more details, rerun with: -v ==13922== ==13922== pthread_mutex_unlock: mutex is not locked ==13922== at 0x299F8B: __pthread_mutex_unlock (vg_libpthread.c:993) ==13922== by 0x41B15B: _IO_fclose@@GLIBC_2.1 (in /lib/libc-2.3.2.so) ==13922== by 0x45098C: __tzfile_read (in /lib/libc-2.3.2.so) ==13922== by 0x44F3B8: tzset_internal (in /lib/libc-2.3.2.so) ==13922== by 0x44FF65: __tz_convert (in /lib/libc-2.3.2.so) ==13922== by 0x44E381: __GI_localtime (in /lib/libc-2.3.2.so) ==13922== by 0x44E220: ctime (in /lib/libc-2.3.2.so) ==13922== by 0x804AB28: clamscan (in /usr/local/bin/clamscan) ==13922== ==13922== Use of uninitialised value of size 4 ==13922== at 0x3B58AA: inflate_table (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x3B3A6D: inflate (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x3AD9F0: gzread (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x23EE38: cli_scangzip (in /usr/local/lib/libclamav.so.1.0.4) ==13922== ==13922== Use of uninitialised value of size 4 ==13922== at 0x3B58B0: inflate_table (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x3B3A6D: inflate (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x3AD9F0: gzread (in /usr/lib/libz.so.1.2.0.7) ==13922== by 0x23EE38: cli_scangzip (in /usr/local/lib/libclamav.so.1.0.4) /home/njh/src/njh/mime/test/clam-seg-fault-file.txt: OK ----------- SCAN SUMMARY ----------- Known viruses: 22548 Scanned directories: 0 Scanned files: 1 Infected files: 0 Data scanned: 0.00 MB I/O buffer size: 131072 bytes Time: 66.486 sec (1 m 6 s) ==13922== ==13922== ERROR SUMMARY: 5 errors from 3 contexts (suppressed: 0 from 0) ==13922== malloc/free: in use at exit: 1201 bytes in 47 blocks. ==13922== malloc/free: 96542 allocs, 96495 frees, 162683282 bytes allocated. ==13922== For counts of detected errors, rerun with: -v ==13922== searching for pointers to 47 not-freed blocks. ==13922== checked 5325260 bytes. ==13922== ==13922== LEAK SUMMARY: ==13922== definitely lost: 0 bytes in 0 blocks. ==13922== possibly lost: 0 bytes in 0 blocks. ==13922== still reachable: 1201 bytes in 47 blocks. ==13922== suppressed: 0 bytes in 0 blocks. ==13922== Reachable blocks (those to which a pointer was found) are not shown. ==13922== To see them, rerun with: --show-reachable=yes ==13922== [EMAIL PROTECTED] test]$ -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Clamav-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-devel
