Skip to content
Commit b746aa3f authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix OOB read in TS_OBJ_print_bio().



TS_OBJ_print_bio() misuses OBJ_txt2obj: it should print the result
as a null terminated buffer. The length value returned is the total
length the complete text reprsentation would need not the amount of
data written.

CVE-2016-2180

Thanks to Shi Lei for reporting this bug.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(cherry picked from commit 0ed26acc)
parent b8802836
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