Revision: 4620
http://skim-app.svn.sourceforge.net/skim-app/?rev=4620&view=rev
Author: amaxwell
Date: 2008-09-14 06:50:00 +0000 (Sun, 14 Sep 2008)
Log Message:
-----------
Fix crash due to NULL pointer dereference. Remove debug logging.
Modified Paths:
--------------
trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
Modified: trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
===================================================================
--- trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
2008-09-13 11:19:52 UTC (rev 4619)
+++ trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
2008-09-14 06:50:00 UTC (rev 4620)
@@ -3064,7 +3064,7 @@
SYNCTEX_CUR += sizeof(synctex_node_t);
}
} while((node = SYNCTEX_FRIEND(node)));
- if(SYNCTEX_START == NULL) {
+ if(node && SYNCTEX_START == NULL) {
/* We did not find any matching glue or kern, retry
with boxes */
do {
if((tag == SYNCTEX_TAG(node))
@@ -3102,8 +3102,6 @@
start_ref = (synctex_node_t *)SYNCTEX_START;
end_ref = (synctex_node_t *)SYNCTEX_START;
next_end:
-printf("We keep:\n");
-SYNCTEX_LOG(*start_ref);
end_ref += 1; /* we allways have start_ref<= end_ref*/
if(end_ref < (synctex_node_t *)SYNCTEX_END) {
node = *end_ref;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit