]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix off-by-one in tls-crypt-v2 client wrapping with custom metadata
authorArne Schwabe <arne@rfc2549.org>
Fri, 3 Apr 2020 09:09:44 +0000 (11:09 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 6 Apr 2020 15:39:50 +0000 (17:39 +0200)
commite23fb6b8c88a2aec160965769f6467d455c0d010
tree1f47129290a706422edc5b87b87102568fef0103
parent57578310992d1fbe8eff97049087c5308089acb5
Fix off-by-one in tls-crypt-v2 client wrapping with custom metadata

Instead of writing at the end of the metadata buffer, the decoded
base64 data overwrites the opcode as BPTR points to the beginning
of the buffer and not the current position. Replace with BEND to
fix this off-by-one

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20200403090944.17726-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19695.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tls_crypt.c