Bug #10653 mysql_real_escape_string crash with single character strings
Submitted: 16 May 2005 1:26 Modified: 17 May 2005 21:22
Reporter: Anker Berg-Sonne Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.4 OS:Windows (Windows Server 2000 SP1)
Assigned to: CPU Architecture:Any

[16 May 2005 1:26] Anker Berg-Sonne
Description:
Passing some single-character strings, like \ and ' to mysql_real_escape_string causes a fatal crash of the client. Workes fine in 4.1.11, but crashes 5.0.4.

How to repeat:
Just call mysql_real_escape_string with "\\" or "'"
[17 May 2005 21:12] Hartmut Holzgraefe
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

Additional info:

5.0.4 doesn't crash on linux but gives wrong results. Latest 5.0bk is OK tough.