Mike Lischke
2014-03-24 10:57:39 UTC
Hey Neil,
I got a bug report with a crash on OS X when auto completion is active and you type something that needs composition (e.g. start with a backtick then press space). It crashes in ScintillaBase::AddCharUTF, because the check for isFillUp unconditionally takes *s. s is NULL in this situation. My question is now if that is just a bug there, i.e. does AddCharUTF have to work properly even with a NULL string or is my approach wrong to remove text after composition ended?
The empty string comes from ScintillaView.mm removeMarkedText. This code path works fine usually, just not when auto completion is active at the same time, which leads me to the assumption that AddCharUTF is supposed to cope with a NULL string.
Mike
I got a bug report with a crash on OS X when auto completion is active and you type something that needs composition (e.g. start with a backtick then press space). It crashes in ScintillaBase::AddCharUTF, because the check for isFillUp unconditionally takes *s. s is NULL in this situation. My question is now if that is just a bug there, i.e. does AddCharUTF have to work properly even with a NULL string or is my approach wrong to remove text after composition ended?
The empty string comes from ScintillaView.mm removeMarkedText. This code path works fine usually, just not when auto completion is active at the same time, which leads me to the assumption that AddCharUTF is supposed to cope with a NULL string.
Mike
--
www.soft-gems.net
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
www.soft-gems.net
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.