Revision: 4a49e52011bf Branch: default Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> Date: Mon Nov 19 13:23:49 2012Log: fixed segmentation fault if liblouis table cannot be found or is incorrect
http://code.google.com/p/liblouisutdml/source/detail?r=4a49e52011bf Modified: /liblouisutdml/liblouisutdml.c ======================================= --- /liblouisutdml/liblouisutdml.c Mon Sep 24 04:44:18 2012 +++ /liblouisutdml/liblouisutdml.c Mon Nov 19 13:23:49 2012 @@ -81,8 +81,8 @@ freeEverything () { lou_logEnd (); + cleanupLibxml (); lbu_free (); - cleanupLibxml (); } static int @@ -321,6 +321,7 @@ if (!k) { freeEverything (); + return 0; } if (ud->inFile != stdin) fclose (ud->inFile); @@ -356,6 +357,7 @@ if (!k) { freeEverything (); + return 0; } *outlen = ud->outlen_so_far; lou_logEnd (); @@ -408,6 +410,7 @@ if (!k) { freeEverything (); + return 0; } if (ud->inFile != stdin) fclose (ud->inFile); For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com