]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix BIO_printf formatting for negative numbers formatted with %e
authorRichard Levitte <levitte@openssl.org>
Wed, 23 Apr 2025 08:26:56 +0000 (10:26 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 24 Apr 2025 14:01:43 +0000 (16:01 +0200)
commitfb555eb7a1d523e9df5584b44d16d0f72417bd19
treeef89927c62831fa117f5aaaa4a4453c8c3ba9b54
parentb83b67fe59511de951db1987fb2ab9e028e2da32
Fix BIO_printf formatting for negative numbers formatted with %e

Some parts of the formatting code assumed that the input number is
positive.  This is fixed by working on its absolute value.

test/bioprinttest.c is amended to test the output of negative numbers
as well.

Fixes #26973

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27478)
crypto/bio/bio_print.c
test/bioprinttest.c