Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
1eb44cf0
Commit
1eb44cf0
authored
Feb 11, 2019
by
Mark Nunberg
Browse files
scrub redisContext before freeing
This helps us detect use-after-free
parent
f60c5506
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
1eb44cf0
...
...
@@ -618,6 +618,7 @@ void redisFree(redisContext *c) {
if
(
c
->
ssl
)
{
redisFreeSsl
(
c
->
ssl
);
}
memset
(
0xff
,
c
,
sizeof
(
*
c
));
free
(
c
);
}
...
...
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