diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-08 14:32:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-14 10:17:46 +0100 |
commit | 68f11e82d9c19e104f34bd5186decc98566738ca (patch) | |
tree | e6112b4d40a03654c8c17d9fa0065b3bcdb1d49c /crypto/mem.c | |
parent | 15d81749322c3498027105f8ee44e8c25479d475 (diff) |
Add some sanity checks around usage of t_fromb64()
The internal SRP function t_fromb64() converts from base64 to binary. It
does not validate that the size of the destination is sufficiently large -
that is up to the callers. In some places there was such a check, but not
in others.
Add an argument to t_fromb64() to provide the size of the destination
buffer and validate that we don't write too much data. Also add some sanity
checks to the callers where appropriate.
With thanks to Shi Lei for reporting this issue.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 73f0df8331910d6726d45ecaab12bd93cc48b4e2)
Diffstat (limited to 'crypto/mem.c')
0 files changed, 0 insertions, 0 deletions