Fix missing bounds check in string conversion.

Bump version number for security fix release.
This commit is contained in:
unknown 2010-04-29 09:29:04 +02:00
commit 5a0af835cc
2 changed files with 5 additions and 1 deletions

View file

@ -4116,6 +4116,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
{
int code;
char hex[]= "0123456789abcdef";
if (s >= e)
return MY_CS_TOOSMALL;
if (wc < 128 && filename_safe_char[wc])
{
*s= (uchar) wc;