openbsd-ports/security/clamav/patches/patch-libclamav_str_c
sthen 323a3affc3 security update to 0.95.1. it doesn't build with ports-tree libtool,
so use the bundled one and mark with XXX until it can be fixed better.
commit requested by mbalmer (maintainer).
2009-04-11 14:13:58 +00:00

16 lines
490 B
Plaintext

$OpenBSD: patch-libclamav_str_c,v 1.6 2009/04/11 14:13:59 sthen Exp $
--- libclamav/str.c.orig Mon Mar 16 18:37:27 2009
+++ libclamav/str.c Tue Mar 24 00:43:32 2009
@@ -166,9 +166,9 @@ int cli_hex2str_to(const char *hex, unsigned char *ptr
for(i = 0; i < len; i += 2) {
if((c = cli_hex2int(hex[i])) >= 0) {
- val = c;
+ val = (char)c;
if((c = cli_hex2int(hex[i+1])) >= 0) {
- val = (val << 4) + c;
+ val = (val << 4) + (char)c;
} else {
return -1;
}