Passed: openssl/openssl#35085 (OpenSSL_1_1_1-stable - 7d76c1f)

Travis CI builds at
Fri May 29 14:27:46 UTC 2020

Build Update for openssl/openssl

Build: #35085
Status: Passed

Duration: 19 mins and 52 secs
Commit: 7d76c1f (OpenSSL_1_1_1-stable)
Author: Bernd Edlinger
Message: bio printf: Avoid using rounding errors in range check

There is a problem casting ULONG_MAX to double which clang-10 is warning about.
ULONG_MAX typically cannot be exactly represented as a double.  ULONG_MAX + 1
can be and this fix uses the latter, however since ULONG_MAX cannot be
represented exactly as a double number we subtract 65535 from this number,
and the result has at most 48 leading one bits, and can therefore be
represented as a double integer without rounding error.  By adding
65536.0 to this number we achive the correct result, which should avoid the

The addresses a symptom of the underlying problem: we print doubles via an
unsigned long integer.  Doubles have a far greater range and should be printed

Reviewed-by: Paul Dale <paul.dale at>
(Merged from

(cherry picked from commit 082c041b4233b17b80129d4ac6b33a28014442b0)

View the changeset:

View the full build log and details:


You can unsubscribe from build emails from the openssl/openssl repository going to
Or unsubscribe from *all* email updating your settings at
Or configure specific recipients for build notifications in your .travis.yml file. See

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-commits mailing list