makecert: fix a regression with > 2048 bit
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Thu, 12 Jan 2017 14:46:13 +0000 (15:46 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 16 Jan 2017 10:11:59 +0000 (11:11 +0100)
commit8aeb9df0f54bd06a66bd3abb696ec058dc6a832a
treea102e4d822479ac08084892ba45b74c08a5f0741
parent960f4644cda5934347750b477c5e03d0eb00c192
makecert: fix a regression with > 2048 bit

When certificates with more than 2048 bits were generated and written to
file the read function used a erroneous calculated length causing the
used buffer to overflow.
winpr/tools/makecert/makecert.c