Curl_ssl_push_certinfo_len: don't %.*s non-zero-terminated string
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Nov 2013 08:56:18 +0000 (09:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Nov 2013 08:59:19 +0000 (09:59 +0100)
commit5aa290f0f209f12130f7a1375c1b76af707e95f2
tree6705d2d1c1c4540216384fddccf114da584662ed
parentf0831f7931355ae7096ab94ea5d2ea01885e9081
Curl_ssl_push_certinfo_len: don't %.*s non-zero-terminated string

Our own printf() replacement clearly can't properly handle %.*s with a
string that isn't zero terminated. Instead of fixing the printf code or
even figuring out what the proper posix behavior is, I reverted this
piece of the code back to the previous version where it does malloc +
memcpy instead.

Regression added in e839446c2a5, released in curl 7.32.0.

Reported-by: Felix Yan
Bug: http://curl.haxx.se/bug/view.cgi?id=1295
lib/sslgen.c