git-svn: trunk@683
Tomasz Kojm authored on 2004/07/22 03:56:24... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Wed Jul 21 20:45:49 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: pe: enhance UPX skew detection (aCaB) |
|
4 |
+ * configure: fix milter test on Solaris 9 (problem reported by |
|
5 |
+ Fletcher Mattox <fletcher*cs.utexas.edu>) |
|
6 |
+ |
|
1 | 7 |
Wed Jul 21 18:46:36 BST 2004 (njh) |
2 | 8 |
---------------------------------- |
3 | 9 |
* clamav-milter: Add a note about using sendmail -d0 to see if |
... | ... |
@@ -11218,7 +11218,7 @@ if test "$have_milter" = "yes"; then |
11218 | 11218 |
if test -d /usr/lib/libmilter ; then |
11219 | 11219 |
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter" |
11220 | 11220 |
fi |
11221 |
- LDFLAGS="$LDFLAGS $CLAMAV_MILTER_LIBS" |
|
11221 |
+ LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS" |
|
11222 | 11222 |
echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5 |
11223 | 11223 |
echo $ECHO_N "checking for mi_stop in -lmilter... $ECHO_C" >&6 |
11224 | 11224 |
if test "${ac_cv_lib_milter_mi_stop+set}" = set; then |
... | ... |
@@ -11283,7 +11283,7 @@ fi |
11283 | 11283 |
echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5 |
11284 | 11284 |
echo "${ECHO_T}$ac_cv_lib_milter_mi_stop" >&6 |
11285 | 11285 |
if test $ac_cv_lib_milter_mi_stop = yes; then |
11286 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lmilter" |
|
11286 |
+ CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS" |
|
11287 | 11287 |
else |
11288 | 11288 |
|
11289 | 11289 |
# Older sendmails require libsm or libsmutil for support functions |
... | ... |
@@ -11477,7 +11477,7 @@ fi |
11477 | 11477 |
echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5 |
11478 | 11478 |
echo "${ECHO_T}$ac_cv_lib_milter_mi_stop" >&6 |
11479 | 11479 |
if test $ac_cv_lib_milter_mi_stop = yes; then |
11480 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lmilter $CLAMAV_MILTER_XLIB" |
|
11480 |
+ CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS" |
|
11481 | 11481 |
else |
11482 | 11482 |
|
11483 | 11483 |
{ { echo "$as_me:$LINENO: error: Cannot find libmilter" >&5 |
... | ... |
@@ -388,13 +388,13 @@ if test "$have_milter" = "yes"; then |
388 | 388 |
if test -d /usr/lib/libmilter ; then |
389 | 389 |
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter" |
390 | 390 |
fi |
391 |
- LDFLAGS="$LDFLAGS $CLAMAV_MILTER_LIBS" |
|
392 |
- AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lmilter"],[ |
|
391 |
+ LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS" |
|
392 |
+ AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS"],[ |
|
393 | 393 |
# Older sendmails require libsm or libsmutil for support functions |
394 | 394 |
AC_SEARCH_LIBS(strlcpy, [sm smutil], [test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"]) |
395 | 395 |
LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB" |
396 | 396 |
$as_unset ac_cv_lib_milter_mi_stop |
397 |
- AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lmilter $CLAMAV_MILTER_XLIB"],[ |
|
397 |
+ AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[ |
|
398 | 398 |
AC_MSG_ERROR([Cannot find libmilter]) |
399 | 399 |
]) |
400 | 400 |
]) |
... | ... |
@@ -537,7 +537,7 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c |
537 | 537 |
if(upxfn) { |
538 | 538 |
int skew = cli_readint32(buff + 2) - EC32(optional_hdr.ImageBase) - EC32(section_hdr[i+1].VirtualAddress); |
539 | 539 |
|
540 |
- if(buff[1] != '\xbe' || skew <= 0 || skew > 0x2e ) { /* FIXME: legit skews?? */ |
|
540 |
+ if(buff[1] != '\xbe' || skew <= 0 || skew > 0xfff ) { /* FIXME: legit skews?? */ |
|
541 | 541 |
skew = 0; |
542 | 542 |
if(!upxfn(src, ssize, dest, dsize)) |
543 | 543 |
upx_success = 1; |