summaryrefslogtreecommitdiff
path: root/app-antivirus/clamav/files
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2017-11-30 11:19:34 -0500
committerCraig Andrews <candrews@gentoo.org>2017-12-07 10:28:48 -0500
commited2ec9f4ebd6b7cf6c8bcbf06fcbb46d826d6d01 (patch)
tree52d1d0baf52fa7f43ffcc35d06a581eff6829921 /app-antivirus/clamav/files
parent7b43bd49cf249fe7b9923304f0d521b1f29866a6 (diff)
downloadgentoo-ed2ec9f4ebd6b7cf6c8bcbf06fcbb46d826d6d01.tar.gz
gentoo-ed2ec9f4ebd6b7cf6c8bcbf06fcbb46d826d6d01.tar.xz
app-antivirus/clamav: Fix SIGSEGV on 64bit archs
Suggested-by: Jiří Moravec <qjim@volny.cz> Bug: https://bugzilla.clamav.net/show_bug.cgi?id=11965 Closes: https://bugs.gentoo.org/638932 Closes: https://bugs.gentoo.org/616564 Closes: https://github.com/gentoo/gentoo/pull/6358 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r--app-antivirus/clamav/files/clamav-0.99.2-pcre2-compile-erroffset.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-antivirus/clamav/files/clamav-0.99.2-pcre2-compile-erroffset.patch b/app-antivirus/clamav/files/clamav-0.99.2-pcre2-compile-erroffset.patch
new file mode 100644
index 00000000000..1ee55171afb
--- /dev/null
+++ b/app-antivirus/clamav/files/clamav-0.99.2-pcre2-compile-erroffset.patch
@@ -0,0 +1,12 @@
+--- clamav-0.99.2/libclamav/regex_pcre.c~ 2017-11-28 14:40:56.484208243 +0100
++++ clamav-0.99.2/libclamav/regex_pcre.c 2017-11-28 14:41:07.301207800 +0100
+@@ -112,7 +112,8 @@ int cli_pcre_addoptions(struct cli_pcre_
+ #if USING_PCRE2
+ int cli_pcre_compile(struct cli_pcre_data *pd, long long unsigned match_limit, long long unsigned match_limit_recursion, unsigned int options, int opt_override)
+ {
+- int errornum, erroffset;
++ int errornum;
++ size_t erroffset;
+ pcre2_general_context *gctx;
+ pcre2_compile_context *cctx;
+