]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/bioprinttest.c: fix sloppy length modifier usage in int_data
authorEugene Syromiatnikov <esyr@openssl.org>
Fri, 29 Aug 2025 17:39:53 +0000 (19:39 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 29 Aug 2025 21:20:26 +0000 (17:20 -0400)
commite489bfbcd58b8ac91e108c6bb669bf5f07217b2c
treeb74eeb685acbd414daa54b87b2c6c02bbab0fc4c
parent79037022801d6496bb8e1a8a29c21236084c8588
test/bioprinttest.c: fix sloppy length modifier usage in int_data

Some test vectors used in int_data have mismatching (or, more
spercifically) missing length modifiers in conversion specifiers;
most of the time it has gone unnoticed, but on some architectures where
64-bit arguments supplied differently (sugh as mips and armv7) it led
to garbage being retrieved instead of the expected values.  Fix it
by properly providing proper length modifiers.

Fixes: 9deaf8383338 "test/bioprinttest.c: add some checks for integer and string printing"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28388)
test/bioprinttest.c