On Oct 17, 2005, at 4:01 AM, Jean-Marc Lasgouttes wrote:

"Georg" == Georg Baum <[EMAIL PROTECTED]> writes:


Georg> See http://bugzilla.lyx.org/show_bug.cgi?id=2086. The problem
Georg> is that the pointer 'codec' can be 0, and that is not checked
Georg> before dereferencing. The patch is based on the one sent by
Georg> Andreas (but without the codec for the "C" locale, because I
Georg> don't know if that is correct), + some whitespace corrections.
Georg> It seems that encode() is called with an empty encoding. I
Georg> don't know why, so this patch does not cure the root of the
Georg> problem, but symptoms. I'd apply it anyway, since a 0 pointer
Georg> can also occur for unknown encodings.

Georg> OK to apply?

Yes. Bennett, with that in place, it would be nice to know what
happens to LyX/Mac.

Deleting the old QLyXKeySym.C, updating from CVS, and recompiling works: no crashes on <Cmd>-N, <Cmd>-O, <Cmd><Shift>-N.

Bennett

Reply via email to