diff options
author | Gabriel Oginski <gabrielx.oginski@intel.com> | 2022-11-10 09:22:17 +0000 |
---|---|---|
committer | Fan Zhang <fanzhang.oss@gmail.com> | 2023-01-16 16:09:35 +0000 |
commit | f4b82f52e8b0fcc59a4c3020724022a7bc184b1a (patch) | |
tree | 3b9450c436ff6dd847b9294b986860c63f9acd33 /INFO.yaml | |
parent | 1d9780a43fe54a55c7540f3528b8703ede0a5871 (diff) |
wireguard: add local variable
The current implementation of wireguard use dereference value from
pointer, but between get and dereference the value from pointer can be
occur change in pool memory, which means that this pointer can be
invalid. Since current implementation doesn't handle with invalid
pointers, segfault can occur.
The fix add a local variable to keep index of peer from pool and also
handle with null pointers from get pointer from pool.
Type: fix
Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com>
Change-Id: Ic161ab08266e584493338c682d827ea1fd754b98
Diffstat (limited to 'INFO.yaml')
0 files changed, 0 insertions, 0 deletions