Skip to content
Commit 76067c75 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

RT3757: base64 encoding bugs



Rewrite EVP_DecodeUpdate.

In particular: reject extra trailing padding, and padding in the middle
of the content. Don't limit line length. Add tests.

Previously, the behaviour was ill-defined, and depended on the position
of the padding within the input.

In addition, this appears to fix a possible two-byte oob read.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarDr Stephen Henson <steve@openssl.org>
(cherry picked from commit 3cdd1e94)
(cherry picked from commit 37faf117)
parent f95d1af0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment