Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8840580
)
hsa: http server: memset after pool_put will cause ASAN issue
55/30455/2
author
jiangxiaoming
<jiangxiaoming@outlook.com>
Thu, 17 Dec 2020 02:35:16 +0000
(10:35 +0800)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 17 Dec 2020 03:42:58 +0000
(
03:42
+0000)
Type: fix
Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I3783f72ff93c362589e859f389d94eadd2aadddb
src/plugins/hs_apps/http_server.c
patch
|
blob
|
history
diff --git
a/src/plugins/hs_apps/http_server.c
b/src/plugins/hs_apps/http_server.c
index
a93261f
..
ce4e09a
100644
(file)
--- a/
src/plugins/hs_apps/http_server.c
+++ b/
src/plugins/hs_apps/http_server.c
@@
-136,9
+136,10
@@
static void
http_server_session_free (http_session_t * hs)
{
http_server_main_t *hsm = &http_server_main;
-
pool_put (hsm->sessions[hs->thread_index], hs)
;
+
u32 thread = hs->thread_index
;
if (CLIB_DEBUG)
memset (hs, 0xfa, sizeof (*hs));
+ pool_put (hsm->sessions[thread], hs);
}
static void