]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/bio/bio_print.c: avoid superfluous zero padding in %#o
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 5 Aug 2025 13:14:51 +0000 (15:14 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 29 Aug 2025 16:18:30 +0000 (12:18 -0400)
commit0f107c709c7392e9cc472e9b82448880d9b3afb1
tree0d12dd6dc752b3e0a46984b03d0bf90fd40dc84b
parent0f6e826f7b70770935b3766efad05d7755a74edc
crypto/bio/bio_print.c: avoid superfluous zero padding in %#o

Zero prefix in the alternative octal form count towards precision,
per [1]:

    For o conversion, it **shall increase the precision**...

[1] https://pubs.opengroup.org/onlinepubs/9799919799//functions/printf.html

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28177)
crypto/bio/bio_print.c