Package: clamav / 0.99+dfsg-0+deb7u2

Metadata

Package Version Patches format
clamav 0.99+dfsg-0+deb7u2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
Change paths in sample conf file to match Debian.patch | (download)

etc/clamav-milter.conf.sample | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 change paths in sample conf file to match debian

Patch-Name: Change-paths-in-sample-conf-file-to-match-Debian.patch

add support for system tomsfastmath.patch | (download)

configure.ac | 2 2 + 0 - 0 !
libclamav/Makefile.am | 10 8 + 2 - 0 !
libclamav/bignum.h | 6 5 + 1 - 0 !
libclamav/xdp.c | 2 1 + 1 - 0 !
m4/reorganization/libs/tomsfastmath.m4 | 12 12 + 0 - 0 !
5 files changed, 28 insertions(+), 4 deletions(-)

 add support for system tomsfastmath

Patch-Name: add-support-for-system-tomsfastmath.patch

tfm drop __DATE__.patch | (download)

libclamav/tomsfastmath/misc/fp_ident.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 tfm: drop __date__

to make it reproducible

Patch-Name: tfm-drop-__DATE__.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

Allow M suffix for PCREMaxFileSize.patch | (download)

shared/optparser.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 allow m suffix for pcremaxfilesize

the config file suggest that this should be possible

Patch-Name: Allow-M-suffix-for-PCREMaxFileSize.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

tfm fix compile errors.patch | (download)

libclamav/tomsfastmath/mul/fp_mul_comba.c | 4 3 + 1 - 0 !
libclamav/tomsfastmath/sqr/fp_sqr_comba.c | 2 1 + 1 - 0 !
libclamav/tomsfastmath/sqr/fp_sqr_comba_generic.c | 7 5 + 2 - 0 !
3 files changed, 9 insertions(+), 4 deletions(-)

 fix compile errors

I hope it fixes the armhf FTBFs with gcc-5

Patch-Name: tfm-fix-compile-errors.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

add LLVM 3.6 support.patch | (download)

libclamav/c++/bytecode2llvm.cpp | 142 139 + 3 - 0 !
libclamav/c++/configure.ac | 4 2 + 2 - 0 !
libclamav/c++/detect.cpp | 4 3 + 1 - 0 !
3 files changed, 144 insertions(+), 6 deletions(-)

 add llvm 3.6 support

Patch-Name: add-LLVM-3.6-support.patch

clamav_add_private_fts_implementation.patch | (download)

clamd/Makefile.am | 1 1 + 0 - 0 !
clamd/fts.c | 1163 1163 + 0 - 0 !
clamd/onaccess_ddd.c | 1 0 + 1 - 0 !
clamd/onaccess_hash.c | 11 5 + 6 - 0 !
clamd/onaccess_scth.c | 6 3 + 3 - 0 !
clamd/priv_fts.h | 189 189 + 0 - 0 !
6 files changed, 1361 insertions(+), 10 deletions(-)

 clamav: add private fts() implementation

This file has been copied out of glibc and slightly modified.

The fts() implementation in current libc does not support LFS which
looks like a glibc (only) restriction. The code has been copied out of
glibc and the used functions (like fstat()) have been modified to use the
public exported libc function instead of the internal one. The libc
functions are are using the LFS version.
The fts() functions gained the _priv_ prefix so they do not clash with
glibc's functions.

This patch will be dropped once glibc's fts() implementations is LFS
safe which is glibc 2.23+, the bug is tracked in glibc's bugzilla as
11460 => https://sourceware.org/bugzilla/show_bug.cgi?id=11460

Patch-Name: clamav_add_private_fts_implementation.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

fix ssize_t size_t off_t printf modifier.patch | (download)

clamd/clamd.c | 2 1 + 1 - 0 !
clamd/server-th.c | 4 3 + 1 - 0 !
libclamav/adc.c | 5 3 + 2 - 0 !
libclamav/asn1.c | 3 2 + 1 - 0 !
libclamav/bytecode.c | 4 2 + 2 - 0 !
libclamav/bytecode_api.c | 2 1 + 1 - 0 !
libclamav/hashtab.c | 32 21 + 11 - 0 !
libclamav/jsparse/js-norm.c | 1 1 + 0 - 0 !
libclamav/matcher.c | 6 4 + 2 - 0 !
libclamav/mbox.c | 9 5 + 4 - 0 !
libclamav/others.c | 4 3 + 1 - 0 !
libclamav/pdf.c | 29 19 + 10 - 0 !
libclamav/pe.c | 4 2 + 2 - 0 !
libclamav/pe_icons.c | 2 1 + 1 - 0 !
libclamav/regex_list.c | 5 4 + 1 - 0 !
libclamav/scanners.c | 5 3 + 2 - 0 !
shared/misc.h | 4 4 + 0 - 0 !
shared/output.c | 3 2 + 1 - 0 !
sigtool/sigtool.c | 3 2 + 1 - 0 !
19 files changed, 83 insertions(+), 44 deletions(-)

 fix ssize_t/size_t/off_t printf modifier
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This fixes a segfault on ARM, Sparc,  if 64bit off_t is used. Once LFS
is enabled then off_t becomes 64bit and there is no portable way to express
it except to cast the variable to signed long long. However with LFS
enabled we can spare that cast.
The 32bit Architectures may explode here because the earlier 64bit off_t
consumes two argument slots and the filename (on which glibc uses
strlen()) becomes invalid.

In brief:
ssize_t -> %zd
size_t  -> %zu
off_t  -> %llu (with LFS enabled)

https://bugzilla.clamav.net/show_bug.cgi?id=11092

Patch-Name: fix-ssize_t-size_t-off_t-printf-modifier.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

libclamav use libmspack.patch | (download)

configure.ac | 3 3 + 0 - 0 !
libclamav/Makefile.am | 11 5 + 6 - 0 !
libclamav/cab.c | 685 0 + 685 - 0 !
libclamav/cab.h | 82 0 + 82 - 0 !
libclamav/chmunpack.h | 123 0 + 123 - 0 !
libclamav/libmspack.c | 525 525 + 0 - 0 !
libclamav/libmspack.h | 7 7 + 0 - 0 !
libclamav/mspack.c | 2026 0 + 2026 - 0 !
libclamav/mspack.h | 294 0 + 294 - 0 !
libclamav/scanners.c | 146 1 + 145 - 0 !
10 files changed, 541 insertions(+), 3361 deletions(-)

 libclamav: use libmspack

This patch provides support for upstream / external libmspack version
libmspack 0.4 (current). The old in-tree version of libmspack is removed
while no loner used.

BTS: #675558
clamav: https://bugzilla.clamav.net/show_bug.cgi?id=11062

Patch-Name: libclamav-use-libmspack.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

libclamav add libmspack 0.5alpha.patch | (download)

libclamav/libmspack-0.5alpha/AUTHORS | 12 12 + 0 - 0 !
libclamav/libmspack-0.5alpha/COPYING.LIB | 504 504 + 0 - 0 !
libclamav/libmspack-0.5alpha/ChangeLog | 549 549 + 0 - 0 !
libclamav/libmspack-0.5alpha/INSTALL | 370 370 + 0 - 0 !
libclamav/libmspack-0.5alpha/Makefile.am | 100 100 + 0 - 0 !
libclamav/libmspack-0.5alpha/Makefile.in | 1486 1486 + 0 - 0 !
libclamav/libmspack-0.5alpha/NEWS | 1 1 + 0 - 0 !
libclamav/libmspack-0.5alpha/README | 130 130 + 0 - 0 !
libclamav/libmspack-0.5alpha/TODO | 8 8 + 0 - 0 !
libclamav/libmspack-0.5alpha/aclocal.m4 | 1154 1154 + 0 - 0 !
libclamav/libmspack-0.5alpha/compile | 347 347 + 0 - 0 !
libclamav/libmspack-0.5alpha/config.guess | 1558 1558 + 0 - 0 !
libclamav/libmspack-0.5alpha/config.h.in | 118 118 + 0 - 0 !
libclamav/libmspack-0.5alpha/config.sub | 1791 1791 + 0 - 0 !
libclamav/libmspack-0.5alpha/configure | 14746 14746 + 0 - 0 !
libclamav/libmspack-0.5alpha/configure.ac | 50 50 + 0 - 0 !
libclamav/libmspack-0.5alpha/depcomp | 791 791 + 0 - 0 !
libclamav/libmspack-0.5alpha/install-sh | 527 527 + 0 - 0 !
libclamav/libmspack-0.5alpha/libmspack.pc.in | 10 10 + 0 - 0 !
libclamav/libmspack-0.5alpha/ltmain.sh | 9661 9661 + 0 - 0 !
libclamav/libmspack-0.5alpha/m4/libtool.m4 | 7997 7997 + 0 - 0 !
libclamav/libmspack-0.5alpha/m4/ltoptions.m4 | 384 384 + 0 - 0 !
libclamav/libmspack-0.5alpha/m4/ltsugar.m4 | 123 123 + 0 - 0 !
libclamav/libmspack-0.5alpha/m4/ltversion.m4 | 23 23 + 0 - 0 !
libclamav/libmspack-0.5alpha/m4/lt~obsolete.m4 | 98 98 + 0 - 0 !
libclamav/libmspack-0.5alpha/missing | 215 215 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/cab.h | 134 134 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/cabc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/cabd.c | 1458 1458 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/chm.h | 122 122 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/chmc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/chmd.c | 1386 1386 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/crc32.c | 95 95 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/crc32.h | 17 17 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/des.h | 15 15 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/hlp.h | 33 33 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/hlpc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/hlpd.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/kwaj.h | 118 118 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/kwajc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/kwajd.c | 560 560 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lit.h | 35 35 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/litc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/litd.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lzss.h | 66 66 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lzssd.c | 93 93 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lzx.h | 221 221 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lzxc.c | 18 18 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/lzxd.c | 895 895 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/mspack.h | 2353 2353 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/mszip.h | 126 126 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/mszipc.c | 18 18 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/mszipd.c | 514 514 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/oab.h | 60 60 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/oabc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/oabd.c | 405 405 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/qtm.h | 128 128 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/qtmd.c | 489 489 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/readbits.h | 207 207 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/readhuff.h | 172 172 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/sha.h | 15 15 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/system.c | 239 239 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/system.h | 124 124 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/szdd.h | 39 39 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/szddc.c | 24 24 + 0 - 0 !
libclamav/libmspack-0.5alpha/mspack/szddd.c | 247 247 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/cabd_md5.c | 161 161 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/cabd_memory.c | 179 179 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/cabd_test.c | 386 386 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/cabrip.c | 81 81 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/chmd_find.c | 95 95 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/chmd_md5.c | 67 67 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/chmd_order.c | 144 144 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/chminfo.c | 284 284 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/chmx.c | 216 216 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/error.h | 22 22 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/expand.c | 79 79 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/md5.c | 457 457 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/md5.h | 165 165 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/md5_fh.h | 123 123 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/multifh.c | 435 435 + 0 - 0 !
libclamav/libmspack-0.5alpha/test/oabx.c | 41 41 + 0 - 0 !
82 files changed, 56306 insertions(+)

 add libmspack library from upstream without unnecessary files

this is from http://www.cabextract.org.uk/libmspack/libmspack-0.5alpha.tar.gz

+ a space in NEWS file so patch works.

Patch-Name: libclamav-add-libmspack-0.5alpha.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

libclamav use internal libmspack.patch | (download)

configure.ac | 16 14 + 2 - 0 !
libclamav/Makefile.am | 30 29 + 1 - 0 !
2 files changed, 43 insertions(+), 3 deletions(-)

 allow to use internal libmspack if the external is not available

Patch-Name: libclamav-use-internal-libmspack.patch
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

libmspack fix autoreconf.patch | (download)

libclamav/libmspack-0.5alpha/configure.ac | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix autoreconf with embedded libmspack

Patch-Name: libmspack-fix-autoreconf.patch

libclamav yara avoid unaliged access to 64bit variab.patch | (download)

libclamav/yara_exec.c | 18 9 + 9 - 0 !
1 file changed, 9 insertions(+), 9 deletions(-)

 libclamav: yara: avoid unaliged access to 64bit variable

The derefence of an unaligned 64bit variable results in a SIGBUS abort
on 32bit SPARC. ARMv5 CPUs seem to perform the load but load garbish.
This memcpy() workaround forces the compiler to do something that works
on even if the data was not properly aligned. For X86 it means no