Fix memory overrun in rsa padding check functions
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 28 Feb 2019 09:08:18 +0000 (10:08 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 7 Mar 2019 22:04:39 +0000 (23:04 +0100)
commit7ebbb293e1d68c014e50dc49944aba0b72f35074
treef153852ba109006ee45235dc49f49a95bfe61e0a
parenta8e129a0923b17751655f2e98d5d4c2ae144e3fe
Fix memory overrun in rsa padding check functions

Fixes #8364 and #8357

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/8365)

(cherry picked from commit d7f5e5ae6d53f1387a42d210806cf5e9ed0882d6)
crypto/rsa/rsa_oaep.c
crypto/rsa/rsa_pk1.c
crypto/rsa/rsa_ssl.c