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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
aa2869a3
Commit
aa2869a3
authored
Nov 04, 2003
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for memory overlap in rt_split.c (reported by valgrind)
parent
15c8f377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
myisam/rt_split.c
myisam/rt_split.c
+2
-1
No files found.
myisam/rt_split.c
View file @
aa2869a3
...
@@ -326,7 +326,8 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
...
@@ -326,7 +326,8 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
cur2
=
rt_PAGE_NEXT_KEY
(
cur2
,
key_length
,
nod_flag
);
cur2
=
rt_PAGE_NEXT_KEY
(
cur2
,
key_length
,
nod_flag
);
++
n2
;
++
n2
;
}
}
memcpy
(
to
-
nod_flag
,
cur
->
key
-
nod_flag
,
full_length
);
if
(
to
!=
cur
->
key
)
memcpy
(
to
-
nod_flag
,
cur
->
key
-
nod_flag
,
full_length
);
}
}
mi_putint
(
page
,
2
+
n1
*
full_length
,
nod_flag
);
mi_putint
(
page
,
2
+
n1
*
full_length
,
nod_flag
);
...
...
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