Fix OOB read in TS_OBJ_print_bio() 54/133354/1
authormin7.choi <min7.choi@samsung.com>
Mon, 12 Jun 2017 01:57:03 +0000 (10:57 +0900)
committermin7.choi <min7.choi@samsung.com>
Mon, 12 Jun 2017 01:57:07 +0000 (10:57 +0900)
commit2bf568d50480657b4bee24f1cad9851787199071
tree4bf53b0b97bc8c7670da6773465a14c7d42c078b
parent35f8453bd748ffab87e52c56a64eff73b1d41f65
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.

Change-Id: I5346552f8167079c2e1c3c63ea59eae31d7607e8
Signed-off-by: min7.choi <min7.choi@samsung.com>
deps/openssl/openssl/crypto/ts/ts_lib.c