]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: reinstate half float validation check
authorPádraig Brady <P@draigBrady.com>
Mon, 30 Jun 2025 13:25:56 +0000 (14:25 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 30 Jun 2025 13:34:55 +0000 (14:34 +0100)
commit87dcd447b165fee248ead5d15a8d2ea3eeaed15e
treee3e8bf4b043f2bdc405916e14a00af6ec822e813
parent9075b2b8d2232e58d3b1aee97119d5676471a5f6
od: reinstate half float validation check

Reinstate check removed in commit 56aa549a0 so that we
disallow -f2 when configured with utils_cv_ieee_16_bit_supported=no.
Otherwise the output routines will consume floats,
i.e. 4 bytes at a time.  Without this extra check
the tests/od/od-endian.sh will fail with this configuration.

* src/od.c (decode_one_format): Reinstate the explicit check
for this configuration edge case.
src/od.c