Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
82d9c8e8
Commit
82d9c8e8
authored
Jun 14, 2013
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#14834378 ADDRESSSANITIZER BUG IN FILENAME_TO_TABLENAME
Backport to 5.5
parent
a040586c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
sql/sql_table.cc
sql/sql_table.cc
+2
-1
strings/ctype-utf8.c
strings/ctype-utf8.c
+3
-1
No files found.
sql/sql_table.cc
View file @
82d9c8e8
...
...
@@ -378,7 +378,8 @@ uint filename_to_tablename(const char *from, char *to, uint to_length
DBUG_ENTER
(
"filename_to_tablename"
);
DBUG_PRINT
(
"enter"
,
(
"from '%s'"
,
from
));
if
(
!
memcmp
(
from
,
tmp_file_prefix
,
tmp_file_prefix_length
))
if
(
strlen
(
from
)
>=
tmp_file_prefix_length
&&
!
memcmp
(
from
,
tmp_file_prefix
,
tmp_file_prefix_length
))
{
/* Temporary table name. */
res
=
(
strnmov
(
to
,
from
,
to_length
)
-
to
);
...
...
strings/ctype-utf8.c
View file @
82d9c8e8
/* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
...
...
@@ -4391,6 +4391,8 @@ my_mb_wc_filename(CHARSET_INFO *cs __attribute__((unused)),
return
MY_CS_TOOSMALL3
;
byte1
=
s
[
1
];
if
(
byte1
==
0
)
return
MY_CS_ILSEQ
;
/* avoid possible out-of-bounds read */
byte2
=
s
[
2
];
if
(
byte1
>=
0x30
&&
byte1
<=
0x7F
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment