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
d2ad8286
Commit
d2ad8286
authored
Feb 19, 2008
by
acurtis/antony@xiphis.org/ltamd64.xiphis.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport valgrind cleanups from 6.0-engines
parent
f6c3587e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
mysql-test/valgrind.supp
mysql-test/valgrind.supp
+13
-0
strings/strmake.c
strings/strmake.c
+3
-3
No files found.
mysql-test/valgrind.supp
View file @
d2ad8286
...
...
@@ -495,3 +495,16 @@
fun:_db_enter_
fun:kill_server
}
#
# Warning caused by small memory leak in threaded dlopen
#
{
dlopen threaded memory leak
Memcheck:Leak
fun:calloc
obj:*/libdl-*.so
fun:dlopen*
}
strings/strmake.c
View file @
d2ad8286
...
...
@@ -41,9 +41,9 @@ char *strmake(register char *dst, register const char *src, size_t length)
write a character rather than '\0' as this makes spotting these
problems in the results easier.
*/
uint
n
=
strlen
(
src
)
+
1
;
if
(
n
<=
length
)
memset
(
dst
+
n
,
(
int
)
'Z'
,
length
-
n
+
1
);
uint
n
=
0
;
while
(
n
<
length
&&
src
[
n
++
]);
memset
(
dst
+
n
,
(
int
)
'Z'
,
length
-
n
+
1
);
#endif
while
(
length
--
)
...
...
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