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
ff6bc096
Commit
ff6bc096
authored
Aug 26, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a very rarge memory overrun bug in the myisamlog program.
parent
fea30410
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
myisam/myisamlog.c
myisam/myisamlog.c
+9
-1
No files found.
myisam/myisamlog.c
View file @
ff6bc096
...
...
@@ -413,8 +413,16 @@ static int examine_log(my_string file_name, char **table_names)
VOID
(
tree_walk
(
&
tree
,(
tree_walk_action
)
test_if_open
,(
void
*
)
&
open_param
,
left_root_right
));
file_info
.
id
=
open_param
.
max_id
+
1
;
/*
* In the line below +10 is added to accomodate '<' and '>' chars
* plus '\0' at the end, so that there is place for 7 digits.
* It is improbable that same table can have that many entries in
* the table cache.
* The additional space is needed for the sprintf commands two lines
* below.
*/
file_info
.
show_name
=
my_memdup
(
isam_file_name
,
(
uint
)
strlen
(
isam_file_name
)
+
6
,
(
uint
)
strlen
(
isam_file_name
)
+
10
,
MYF
(
MY_WME
));
if
(
file_info
.
id
>
1
)
sprintf
(
strend
(
file_info
.
show_name
),
"<%d>"
,
file_info
.
id
);
...
...
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