[Tracker] simple patch to fix tracker-extract core dump when meet ps file on solaris
- From: Jerry Tan <Jerry Tan Sun COM>
- To: tracker-list gnome org
- Subject: [Tracker] simple patch to fix tracker-extract core dump when meet ps file on solaris
- Date: Mon, 21 May 2007 18:13:20 +0800
see http://bugzilla.gnome.org/show_bug.cgi?id=440142
Steps to reproduce:
1. run tracker-extract test.pc application/postscript
2. it core dump
3.
Stack trace:
core '/work/jtan/core' of 1556: tracker-extract
/work/jtan/tmp/vim70/runtime/print/ascii.ps applicatio
fd6d94c0 strlen (806b210, 806b440, 8052cdc, 8052cdc) + 30
080537d3 tracker_get_file_metadata (8068f60, 806aa10, fd860a98, 1) + d2
08053a43 main (3, 8047304, 8047314) + 13e
080534dc _start (3, 8047450, 8047460, 804748c, 0, 80474a3) + 80
simple patch for this:
Index: tracker-extract-ps.c
===================================================================
--- tracker-extract-ps.c (revision 591)
+++ tracker-extract-ps.c (working copy)
@@ -133,6 +133,7 @@
}
g_free (line);
line = NULL;
+ length = 0;
getline (&line, &length, f);
}
g_free (line);
Jamie, please take a look.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]