diff options
author | Jon Loeliger <jdl@netgate.com> | 2022-03-10 11:23:27 -0600 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-03-21 16:25:21 +0000 |
commit | d23c55fa56a0f564be290f9f301094fd5ba45361 (patch) | |
tree | 338a4b3c20a20c05ce231baafd742ea7d39573da /src/plugins/srv6-mobile/gtp6_e.c | |
parent | f47917959872afe2aff464343944bbffee545308 (diff) |
wireguard: dont stacksmash bad peer base64 keys
Just like commit 252647482b24bb3474e8f13bc86100718176832f
did for Wireguard interface keys, prevent stack smashing
the peer keys.
Integer math on 32 bytes of base64 data might yield 33 bytes
of data in some poorly formed user input of private key values.
Rather than smashing the stack (detected) and aborting, simply
allow for the possible yet irrelevant 33-rd byte of data.
Type: fix
Fixes: edca1325cf296bd0f5ff422fc12de2ce7a7bad88
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Change-Id: I9f77b3faaaa01d3123b356c958db60c87238db9c
Diffstat (limited to 'src/plugins/srv6-mobile/gtp6_e.c')
0 files changed, 0 insertions, 0 deletions