aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/files/patch-libclamav__pdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/clamav/files/patch-libclamav__pdf.c')
-rw-r--r--security/clamav/files/patch-libclamav__pdf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/clamav/files/patch-libclamav__pdf.c b/security/clamav/files/patch-libclamav__pdf.c
new file mode 100644
index 000000000000..ca3e611aa43b
--- /dev/null
+++ b/security/clamav/files/patch-libclamav__pdf.c
@@ -0,0 +1,11 @@
+--- libclamav/pdf.c.orig 2010-09-28 14:19:25.000000000 -0300
++++ libclamav/pdf.c 2010-09-28 14:19:49.000000000 -0300
+@@ -1024,7 +1024,7 @@
+ offset += pdfver - start;
+
+ /* find trailer and xref, don't fail if not found */
+- map_off = map->len - 2048;
++ map_off = (off_t)map->len - 2048;
+ if (map_off < 0)
+ map_off = 0;
+ bytesleft = map->len - map_off;