Pass a temporary pointer to o2i_SCT_signature from SCT_new_from_base64
authorRob Percival <robpercival@google.com>
Wed, 19 Oct 2016 14:38:20 +0000 (15:38 +0100)
committerRob Percival <robpercival@google.com>
Wed, 16 Nov 2016 13:43:36 +0000 (13:43 +0000)
commit73ccf3ca01085d143aecb7fcfb0aac18caa678d2
tree899c7d6a6b31a46607b6a74a2003b832ae0f1374
parent70a06fc1a8b098e9934f837896159bfc6caf0228
Pass a temporary pointer to o2i_SCT_signature from SCT_new_from_base64

Otherwise, |dec| gets moved past the end of the signature by
o2i_SCT_signature and then can't be correctly freed afterwards.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1548)
crypto/ct/ct_b64.c