]> git.baikalelectronics.ru Git - arm-tf.git/commit
Use preallocated parts of the HASH struct
authorJimmy Brisson <jimmy.brisson@arm.com>
Mon, 27 Jul 2020 18:22:42 +0000 (13:22 -0500)
committerManish Pandey <manish.pandey2@arm.com>
Tue, 20 Oct 2020 20:17:41 +0000 (20:17 +0000)
commitbcad20308fbaad350ad0486d7cb36ae23b44a18b
tree73dcde8e59fef400b5178aa7ea288bc20d34d1e9
parent4a34d18f35b76f1df282b1a077ad749d13c1d19d
Use preallocated parts of the HASH struct

When OpenSSL's macro allocates the HASH struct, it allocates the fields
as well. After this allocation, the prior code would assign over the
pointers inside the HASH struct, leaking these fields. This patch
avoids allocating extra copies of these members.

Change-Id: I50a38b0a04b52ec54d6388db0f694feb578d2818
Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
tools/cert_create/src/ext.c