diff options
author | Gao Feng <davidfgao@tencent.com> | 2020-04-26 09:57:18 +0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-04-27 13:35:17 +0000 |
commit | 9165e0365cc21575fd3e4a98be59317a839553f4 (patch) | |
tree | 8d6a3903e2fd0f275bf73734b262ab4bc9a2cdaf /.clang-format | |
parent | ffbcf6178891bd68a97543ac91d28f37256d5e13 (diff) |
ip: reassembly: fix one possible use-after-free
When use the kv->v.memory_owner_thread_index as the index to get the
reass in pool, maybe this element is freed by the owner thread because
of timeout, too many fragments, and so on.
So we should check if do_handoff with kv->v.memory_owner_thread_index
before get the reass from pool.
Type: fix
Signed-off-by: Gao Feng <davidfgao@tencent.com>
Change-Id: Ie0f1dc368f86d0fd65292ca0c5e1908348015e09
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions