r16135 - gnucash/trunk/src - Do not change internal scheme strings in place, #389740.

Andreas Köhler andi5 at cvs.gnucash.org
Tue May 29 12:24:41 EDT 2007


Author: andi5
Date: 2007-05-29 12:24:38 -0400 (Tue, 29 May 2007)
New Revision: 16135
Trac: http://svn.gnucash.org/trac/changeset/16135

Modified:
   gnucash/trunk/src/core-utils/core-utils.i
   gnucash/trunk/src/core-utils/core-utils.scm
   gnucash/trunk/src/import-export/qif-import/qif-file.scm
Log:
Do not change internal scheme strings in place, #389740.

This fixes a crash that happened in the QIF import with Guile 1.8 after
stripping utf8 violating bytes from the internal null-terminated string
of a scheme string, as the length parameter has not been updated and a
safety check threw an error from within a critical section at a later
stage.  Just do not wrap gnc_utf8_strip_invalid but rather
gnc_utf8_strip_invalid_strdup.




More information about the gnucash-patches mailing list