Rework the append_buf function
authorPauli <paul.dale@oracle.com>
Wed, 5 Jul 2017 22:03:58 +0000 (08:03 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 5 Jul 2017 22:03:58 +0000 (08:03 +1000)
commitb2ac85adac85f95af999df96367872d38068b028
treee63d95497b9cfc467c6eccab91185ad8c65b3dbb
parent9a0953ed768571d2c6077b9698be718cc9a8a367
Rework the append_buf function

It won't overflow the buffer and will allocate new buffers sufficiently large to
hold new strings longer than the expansion factor.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3847)
apps/engine.c