summaryrefslogtreecommitdiffstats
path: root/system/foremost/foremost-broken-jpeg.patch
diff options
context:
space:
mode:
author Larry Hajali <larryhaja[at]gmail[dot]com>2010-05-12 23:33:32 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-12 23:33:32 +0200
commit0d9db4957e2f6cf5726c0f8449fa3cd336b36880 (patch)
treec19f9a4f026854a413b0689114806cc8adad42af /system/foremost/foremost-broken-jpeg.patch
parentd4e5acf32462482affa7ac430890944478694f17 (diff)
downloadslackbuilds-0d9db4957e2f6cf5726c0f8449fa3cd336b36880.tar.gz
slackbuilds-0d9db4957e2f6cf5726c0f8449fa3cd336b36880.tar.xz
system/foremost: Added to 12.2 repository
Diffstat (limited to 'system/foremost/foremost-broken-jpeg.patch')
-rw-r--r--system/foremost/foremost-broken-jpeg.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/foremost/foremost-broken-jpeg.patch b/system/foremost/foremost-broken-jpeg.patch
new file mode 100644
index 0000000000..fef3ad164c
--- /dev/null
+++ b/system/foremost/foremost-broken-jpeg.patch
@@ -0,0 +1,17 @@
+diff -Naur foremost-1.5.6.orig/extract.c foremost-1.5.6/extract.c
+--- foremost-1.5.6.orig/extract.c 2009-05-06 03:56:16.000000000 +0000
++++ foremost-1.5.6/extract.c 2009-06-07 19:59:12.000000000 +0000
+@@ -1794,7 +1794,12 @@
+ if (((foundat + headersize) - buf) > buflen){ return NULL; }
+
+ foundat += headersize;
+-
++
++ if (foundat >= (buf + buflen))
++ {
++ return buf + needle->header_len;
++ }
++
+ if (foundat[2] != (unsigned char)'\xff')
+ {
+ break;