[QScintilla] [Bug] Assertion `val >= 0' failed by QsciLexerCPP

Phil Thompson phil at riverbankcomputing.com
Mon Aug 13 16:47:39 BST 2012


On Mon, 13 Aug 2012 19:25:27 +0900, Yuya Nishihara <yuya at tcha.org> wrote:
> Hi,
> 
> I encountered crash if QsciLexerCPP is applied for "#if \xb5" line.
> I made a minimal repro code (see attached). Both C++ and Python versions
> do the same thing.
> 
> Environment:
> Debian GNU/Linux (sid)
> Kernel 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64
GNU/Linux
> 
> libqt4-core       4:4.8.2-2+b1
> libqscintilla2-8  2.6.1-5+b1
> 
> Backtrace:
> qsci-cpplexer-crash: ../lexlib/CharacterSet.h:62: bool
> CharacterSet::Contains(int) const: Assertion `val >= 0' failed.

It's the assert() itself which is wrong - just delete it. Fixed in
tonight's snapshot.

Thanks,
Phil


More information about the QScintilla mailing list