Bug #6499 Crash when pasting into query text field
Submitted: 8 Nov 2004 17:25 Modified: 15 Nov 2004 22:47
Reporter: bret barker Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.1-gamma OS:Linux (Linux/Debian Sid)
Assigned to: Alfredo Kojima CPU Architecture:Any

[8 Nov 2004 17:25] bret barker
Description:
When I paste some text (using middle mouse button) into the query text box, I'm getting a crash with the following error:

/tmp/mysql-query-browser:$ ./bin/mysql-query-browser  

Gtk-ERROR **: Char offset 15 is off the end of the line
aborting...
./bin/mysql-query-browser: line 9: 14570 Aborted                 $MYPATH/mysql-query-browser-bin

It only happens with some text, but is repeatable. 

How to repeat:
1) open mysql-query-browser:
$ ./bin/mysql-query-browser

2) Select some text from another app with the mouse (I'm using emacs). 
3) Then paste the text into the query field using the middle mouse button. 
4) Crash.

This text in particular will trigger it:
-- kill $2.50 
update tournament_type set active=0, listed=0, updated=1 where id=146;
[15 Nov 2004 22:47] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html