diff options
author | Jon Loeliger <jdl@netgate.com> | 2022-02-16 10:52:56 -0600 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-02-22 18:21:41 +0000 |
commit | d9d77076b01347dfc1dd98cee80a298729ce9b85 (patch) | |
tree | 00da8a595d601f14a0c9763472a22371b658772e /src/vlibapi/vat_helper_macros.h | |
parent | 09cdea643aa181d833df15b8c96c3a812320761a (diff) |
wireguard: prevent stacksmashing on poorly formed base64 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
Change-Id: I42acfbf3e8fbb3d517e21c53d4f80459d4800e9d
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vlibapi/vat_helper_macros.h')
0 files changed, 0 insertions, 0 deletions