Go to bug ID
Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
pn8830
Product/Version ?
Crimson Editor / Version 3.70
Status ?
Closed
Severity ?
Major
Duplicate Of ?
- none -
Summary ?
CE crashes on Output Window "Copy Content" if line is longer then 2058 characters
Report Time ?
May 4, 2007 09:27:36 PM
Assignment ?
pn8830
Resolution ?
Fixed
Priority ?
High
Dependencies ?
- none -


Votes
For: 1 (100%)
Against: 0 (0%)
Total: 1

May 4, 2007 09:27:36 PM pn8830
If user tool writes a line that is longer then 2058 characters to the Output Window then invoking "Copy Content" in Output Window context menu causes CE to crash immediately.

Crimson Editor 3.70.
OS: Windows XP Pro SP2

PN

May 4, 2007 09:37:10 PM pn8830
How to reproduce:

I did it with Tcl shell. I have ActiveTcl installed but it probably can be reproduced with any other language.

1. Configure User Tools with:
================================
Menu text: tclsh
Command: c:\\Tcl\\bin\\tclsh.exe
Arguement: $(FileName)
Initial Dir: $(FileDir)
Capture Output: Checked
Save before execute: Checked

2. Create sample code:
================================
#------------------------------
# This code prints 2059 i chars

set c 2059
set i 0
while {$i <= $c} {
incr i
puts -nonewline i
}
#----------------------------


3. Copy Content of Output window
================================

Right click in the Output Window
and select Copy Content.
CE should crash.

NOTE: If to change c to 2058 in the
above code this option works fine.

June 4, 2008 02:37:20 AM pn8830
Buffer overrun. Fixed in rev 243.
PN.