crash

27 views
Skip to first unread message

Okko Willeboordse

unread,
Oct 17, 2024, 4:57:45 PM10/17/24
to scite-interest
Hello,

Both Sc32_552.exe and Sc552.exe crash upon the following;
 - open attached file
 - hold the DOWNARROW key or scroll down with the mouse scroll wheel or scroll bar up to the point as shown in CrashDialog.png

The file is publically available at;




CrashDialog.png
RTPSParticipantAttributes.hpp

Neil Hodgson

unread,
Oct 17, 2024, 7:32:07 PM10/17/24
to scite-interest
 - open attached file
 - hold the DOWNARROW key or scroll down with the mouse scroll wheel or scroll bar up to the point as shown in CrashDialog.png

This occurs with Unix-style \n line ends but doesn't (or is less likely) with Windows \r\n line ends and it depends on the range being styled so may not happen if (for example) you move straight to the file end then move back to this position.

The bug is actually in handling an empty document comment keyword. Some document comment tools use XML like tags such as <summary>. The code sees the < and then checks the next text against the defined keywords. There are other potential results here: if the document is scrolled to the end to avoid the crash then the line after the '<' is changed then the rest of the document may appear as an invalid documentation comment keyword.

A reasonable fix appears to be to not treat a '<' followed by whitespace like a line and as the start of a keyword, so that has been committed as.

An updated binary is available from
https://www.scintilla.org/wscite.zip Windows executable (64-bit)

Due to this change the releases will be delayed so may appear tomorrow October 19 instead of today.

Neil
Reply all
Reply to author
Forward
0 new messages