mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 14:45:31 +02:00
Fix missing bounds check in string conversion.
Bump version number for security fix release.
This commit is contained in:
parent
1f683a7270
commit
5a0af835cc
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue