Bug #6612 ustring.find called with swaped parameters
Submitted: 14 Nov 2004 19:58 Modified: 15 Nov 2004 22:14
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.1 OS:Linux (Linux/Debian)
Assigned to: Alfredo Kojima CPU Architecture:Any

[14 Nov 2004 19:58] [ name withheld ]
Description:
--- mysql-query-browser-1.1.1.orig/mysql-query-browser/source/linux/MQScriptEditorTab.cc
+++ mysql-query-browser-1.1.1/mysql-query-browser/source/linux/MQScriptEditorTab.cc
@@ -153,7 +153,7 @@
   do 
   {
     b= e;
-    e= text.find(b, '\n');
+    e= text.find('\n', b);
   } while (e != Glib::ustring::npos && e-b<HIGHLIGHT_DISABLE_LENGTH);
 
   if (e != Glib::ustring::npos)

see http://www.gtkmm.org/gtkmm2/docs/reference/html/classGlib_1_1ustring.html#z9_4 for definition

How to repeat:
.

Suggested fix:
apply a patch
[15 Nov 2004 22:14] 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