[tracker] Apply patch to fix crash in indexing pdf (Fix by Marek Kašík; Bug #751922)
Deji Akingunola
deji at fedoraproject.org
Wed Dec 14 04:10:22 UTC 2011
commit 5f4cc1f1dafe67b8342dd073b8b203f82f2a5006
Author: Deji Akingunola <dakingun at gmail.com>
Date: Tue Dec 13 23:10:19 2011 -0500
Apply patch to fix crash in indexing pdf (Fix by Marek Kašík; Bug #751922)
tracker-extract-pdf-crash-fix.patch | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tracker-extract-pdf-crash-fix.patch b/tracker-extract-pdf-crash-fix.patch
new file mode 100644
index 0000000..17f327b
--- /dev/null
+++ b/tracker-extract-pdf-crash-fix.patch
@@ -0,0 +1,11 @@
+--- src/tracker-extract/tracker-extract-pdf.c 2011-11-25 09:50:33.000000000 -0500
++++ src/tracker-extract/tracker-extract-pdf.c.new 2011-12-13 22:56:51.251158179 -0500
+@@ -338,7 +338,7 @@
+ len = 0;
+ } else {
+ contents = (gchar *) mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
+- if (contents == NULL) {
++ if (contents == NULL || contents == MAP_FAILED) {
+ g_warning ("Could not mmap pdf file '%s': %s\n",
+ filename,
+ g_strerror (errno));
More information about the scm-commits
mailing list