summaryrefslogtreecommitdiffstats
path: root/extras/hs-test
diff options
context:
space:
mode:
authorGabriel Oginski <gabrielx.oginski@intel.com>2022-11-10 09:22:17 +0000
committerFan Zhang <fanzhang.oss@gmail.com>2023-01-16 16:09:35 +0000
commitf4b82f52e8b0fcc59a4c3020724022a7bc184b1a (patch)
tree3b9450c436ff6dd847b9294b986860c63f9acd33 /extras/hs-test
parent1d9780a43fe54a55c7540f3528b8703ede0a5871 (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 'extras/hs-test')
0 files changed, 0 insertions, 0 deletions