r23059 - gnucash/trunk/src/app-utils - Bug #691587: Catch scheme exceptions when converting error messages to a C string.

Christian Stimming cstim at code.gnucash.org
Wed Jun 19 11:48:15 EDT 2013


Author: cstim
Date: 2013-06-19 11:48:13 -0400 (Wed, 19 Jun 2013)
New Revision: 23059
Trac: http://svn.gnucash.org/trac/changeset/23059

Modified:
   gnucash/trunk/src/app-utils/gfec.c
Log:
Bug #691587: Catch scheme exceptions when converting error messages to a C string.

When loading a scheme data file such as ~/.gnucash/stylesheets that contains
invalid characters (e.g., all-zero bytes), the loading throws a scheme
exception and we are redirected into the error catch handler. When trying
to convert the erroneous scheme expression into a string for the
message output, scheme runs into an exception right again. Hence, the
conversion to string must be guarded by a stack_catch as well.



More information about the gnucash-patches mailing list