summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-02-10 09:34:22 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-02-10 09:34:22 +0200
commit64c82a68ccb2a2d300820b7f3bde9317f41d9902 (patch)
tree1906695b4daec01353d8e92d1cadc6f4e7cfc789 /plugin
parentcb6b340b0f51c48e0d7f294f85933d540387bb2b (diff)
downloadmariadb-git-64c82a68ccb2a2d300820b7f3bde9317f41d9902.tar.gz
Bug #59884: setting charset to 2048 crashes
The retrieval of a charset by number was not doing bounds checking before accessing the internal character sets array. Added checks for valid charset number. Added asserts for valid charset number to some of the internal functions. Removed one superfluous check for charset_number 0 (since the all_charsets_array[0] is set to 0 anyway) for uniformity. Test suite added.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions