Fix a buffer overread in OAEP padding removal
authortb <tb@openbsd.org>
Sun, 20 Feb 2022 19:16:34 +0000 (19:16 +0000)
committertb <tb@openbsd.org>
Sun, 20 Feb 2022 19:16:34 +0000 (19:16 +0000)
commit7cbc902d6f02752ddfdbed2f2538031e42ee85fc
treeae0b28793745d97cb56b42102ed65ea9fe17be65
parent3bce11378f30a6c24fe4c9a92050db35c8fed52f
Fix a buffer overread in OAEP padding removal

This only occurs on very small payloads and tightly allocated buffers
that don't usually occur in practice.

This is OpenSSL f61c6804

ok inoguchi jsing
lib/libcrypto/rsa/rsa_oaep.c