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
10373a90
Commit
10373a90
authored
Jan 28, 2006
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
two buffer overflows fixed
parent
95adb083
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
sql/sp.cc
sql/sp.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
sql/unireg.cc
sql/unireg.cc
+3
-3
No files found.
sql/sp.cc
View file @
10373a90
...
...
@@ -501,7 +501,7 @@ db_create_routine(THD *thd, int type, sp_head *sp)
else
{
restore_record
(
table
,
s
->
default_values
);
// Get default values for fields
strx
mov
(
definer
,
thd
->
security_ctx
->
priv_user
,
"@"
,
strx
nmov
(
definer
,
sizeof
(
definer
)
-
1
,
thd
->
security_ctx
->
priv_user
,
"@"
,
thd
->
security_ctx
->
priv_host
,
NullS
);
if
(
table
->
s
->
fields
!=
MYSQL_PROC_FIELD_COUNT
)
...
...
sql/sql_parse.cc
View file @
10373a90
...
...
@@ -1253,6 +1253,7 @@ pthread_handler_t handle_bootstrap(void *arg)
thd
->
version
=
refresh_version
;
thd
->
security_ctx
->
priv_user
=
thd
->
security_ctx
->
user
=
(
char
*
)
my_strdup
(
"boot"
,
MYF
(
MY_WME
));
thd
->
security_ctx
->
priv_host
[
0
]
=
0
;
buff
=
(
char
*
)
thd
->
net
.
buff
;
thd
->
init_for_queries
();
...
...
sql/unireg.cc
View file @
10373a90
...
...
@@ -63,7 +63,7 @@ static bool make_empty_rec(THD *thd, int file, enum legacy_db_type table_type,
keys number of keys to create
key_info Keys to create
db_file Handler to use. May be zero, in which case we use
create_info->db_type
create_info->db_type
RETURN
0 ok
1 error
...
...
@@ -84,7 +84,7 @@ bool mysql_create_frm(THD *thd, const char *file_name,
uchar
fileinfo
[
64
],
forminfo
[
288
],
*
keybuff
;
TYPELIB
formnames
;
uchar
*
screen_buff
;
char
buff
[
5
];
char
buff
[
32
];
#ifdef WITH_PARTITION_STORAGE_ENGINE
partition_info
*
part_info
=
thd
->
lex
->
part_info
;
#endif
...
...
@@ -232,7 +232,7 @@ bool mysql_create_frm(THD *thd, const char *file_name,
goto
err
;
}
}
VOID
(
my_seek
(
file
,
filepos
,
MY_SEEK_SET
,
MYF
(
0
)));
if
(
my_write
(
file
,(
byte
*
)
forminfo
,
288
,
MYF_RW
)
||
my_write
(
file
,(
byte
*
)
screen_buff
,
info_length
,
MYF_RW
)
||
...
...
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