Bugs item #1680012, was opened at 2007-03-13 10:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1680012&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: Bug
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Zrax (zrax)
Assigned to: Nobody/Anonymous (nobody)
Summary: Scintilla assertion fails on long PHP heredoc quotes

Initial Comment:
When dealing with a long heredoc style PHP string, the scintilla component will 
sometimes fail the assertion:

        PLATFORM_ASSERT(lengthStyle == 0 ||
                (lengthStyle > 0 && lengthStyle + position <= style.Length()));

CellBuffer::SetStyleFor(int position, int lengthStyle, char styleValue, char 
mask) in CellBuffer.cxx.  I'm not sure of the exact conditions that makes it 
crash, but depending on the contents, it will sometimes crash when trying to 
type into the file, and sometimes won't even let you scroll far enough to see 
it before crashing.  However, per file it seems to be pretty consistent.  So, 
for example, if one file has a typing crash, it will always crash when trying 
to type into that same location.

This was tested both with Notepad2 (which is where I got the actual assertion 
line from) and SciTE (which tends to hang instead of crash, but still with the 
same consistency), so it seems quite likely to be the Scintilla component 
itself.  Also, just pasting text doesn't trigger the crash, so to test it, 
you'll need to not only paste a bunch of random text, but then also try to type 
normally after it all.  Also, this doesn't happen with normal single- or 
double-quoted strings, just heredoc strings.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1680012&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to