Fix OOB read in TS_OBJ_print_bio()
authormin7.choi <min7.choi@samsung.com>
Mon, 12 Jun 2017 01:57:03 +0000 (10:57 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Mon, 12 Jun 2017 05:19:32 +0000 (14:19 +0900)
commitbb880502315be469c8b8e6a63652c7c0e163eb79
tree4bf53b0b97bc8c7670da6773465a14c7d42c078b
parent14ffe02a45aeb34b0c535b74dae8c97bec123885
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