Fix of prefix bio filter (bf_prefix.c): rely on the given length
authorRichard Levitte <levitte@openssl.org>
Thu, 1 Feb 2018 20:28:59 +0000 (21:28 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 1 Feb 2018 21:09:41 +0000 (22:09 +0100)
commit03cb2cc9e53f7ca7539069a388d2767fffa7cf66
tree93b89041192d351470d1240e0d453df692651e4e
parentf345b1f39d9b4e4c9ef07e7522e9b2a870c9ca09
Fix of prefix bio filter (bf_prefix.c): rely on the given length

The assumption that the received buffer has to be NUL-terminated was
faulty.

Fault found in #5224

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5239)
apps/bf_prefix.c