Bug #2386 Index.xml file larger than 1024*16
Submitted: 14 Jan 2004 7:18 Modified: 15 Jan 2004 5:12
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:mysql-4.1.1-alpha-standard (Official MyS OS:Any (any)
Assigned to: Alexander Barkov CPU Architecture:Any

[14 Jan 2004 7:18] [ name withheld ]
Description:
in .../libmysql/charset.c, MAX_BUF is 16k, I believe it's supposedly to read the file into buf
in one shot, but .../share/mysql/charsets/Index.xml is larger than 16k. Later on in
my_parse_charset_xml(), the parsing will overstep beyond buf. 

How to repeat:
check the src

Suggested fix:
Increase MAX_BUF or change the way file is read into buf in my_read_charset_file().
[14 Jan 2004 8:28] Dean Ellis
Verified against 4.1.2.  Only MAX_BUF bytes will be read, with Index.xml already exceeding this size.  Add a charset at the end to see that this is the case.

Thank you.
[15 Jan 2004 5:12] Alexander Barkov
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