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
f88097ee
Commit
f88097ee
authored
Apr 26, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible memory overrun when reading broken character set files
parent
1621dd98
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mysys/charset.c
mysys/charset.c
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysys/charset.c
View file @
f88097ee
...
@@ -85,7 +85,7 @@ static my_bool get_word(struct simpleconfig_buf_st *fb, char *buf)
...
@@ -85,7 +85,7 @@ static my_bool get_word(struct simpleconfig_buf_st *fb, char *buf)
endptr
=
fb
->
buf
;
endptr
=
fb
->
buf
;
}
}
while
(
!
isspace
(
*
endptr
))
while
(
*
endptr
&&
!
isspace
(
*
endptr
))
*
buf
++=
*
endptr
++
;
*
buf
++=
*
endptr
++
;
*
buf
=
0
;
*
buf
=
0
;
fb
->
p
=
endptr
;
fb
->
p
=
endptr
;
...
...
sql/mysqld.cc
View file @
f88097ee
...
@@ -785,7 +785,7 @@ void clean_up(bool print_message)
...
@@ -785,7 +785,7 @@ void clean_up(bool print_message)
if
(
!
opt_bootstrap
)
if
(
!
opt_bootstrap
)
(
void
)
my_delete
(
pidfile_name
,
MYF
(
0
));
// This may not always exist
(
void
)
my_delete
(
pidfile_name
,
MYF
(
0
));
// This may not always exist
#endif
#endif
if
(
print_message
)
if
(
print_message
&&
errmesg
)
sql_print_error
(
ER
(
ER_SHUTDOWN_COMPLETE
),
my_progname
);
sql_print_error
(
ER
(
ER_SHUTDOWN_COMPLETE
),
my_progname
);
x_free
((
gptr
)
my_errmsg
[
ERRMAPP
]);
/* Free messages */
x_free
((
gptr
)
my_errmsg
[
ERRMAPP
]);
/* Free messages */
my_thread_end
();
my_thread_end
();
...
...
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