29 Apr
2010
29 Apr
'10
9:09 a.m.
#At lp:maria 2850 knielsen@knielsen-hq.org 2010-04-29 Fix missing bounds check in string conversion. modified: strings/ctype-utf8.c === modified file 'strings/ctype-utf8.c' --- a/strings/ctype-utf8.c 2010-03-30 12:36:49 +0000 +++ b/strings/ctype-utf8.c 2010-04-29 07:09:50 +0000 @@ -4116,6 +4116,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __att { int code; char hex[]= "0123456789abcdef"; + + if (s >= e) + return MY_CS_TOOSMALL; + if (wc < 128 && filename_safe_char[wc]) { *s= (uchar) wc;