Segmentation fault on paste a long text into Scintilla

Hi there,

In bundled samples\scintilla.rb, paste a long one-line text (see below)
caused segmentation fault

scintilla.rb:166: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

However, It was Ok if not including last 100 or so characters (worked on
13100 characters).


– text copied

Source Code
CSS Style
Rich Text
The Rich Text Area is supported on all major browsers, and will fall back gracefully to the level of functionality supported on each.
<img class="gwt-Image" onload='this.__gwtLastUnhandledEvent="load";' src="" style="width: 20px; height: 20px; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABSklEQVR42t2Uv0oDQRCH8zR5FhvfJOADpEplpWBhY6cgNgrqA0RTRDHNxWgjCF7jHyxyIaggyTHyrfyOgejuYRcPfuze7sw3szN712j8u+fxeWxo0B/Y