Prevent an overflow when trying to print excessively big floats
authorMatt Caswell <matt@openssl.org>
Wed, 25 May 2016 15:20:48 +0000 (16:20 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 27 May 2016 09:23:18 +0000 (10:23 +0100)
commit1b62d880b5190de8c49a01837d96501cecf2a111
treecc296eb674f881bc28b5b33e544652904cea4f9b
parentd6056f085dc0d53663433d98eb105cb5f26624e7
Prevent an overflow when trying to print excessively big floats

We convert the integer part of the float to a long. We should check it
fits first.

Issue reported by Guido Vranken.

GitHub Issue #1102

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/bio/b_print.c