1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-20 04:01:06 +00:00
uutils-coreutils/src/uucore
kf zheng e6b6b2761b
printf: Check precision before writing into stdout (#6511)
* Add a new error type InvalidPrecision

* check if the precision is valid before writing to stdout when it is signedInt, unsigned, or float

* add tests for invalid precision check

* add tests for invalid precision check

* fix possible cross-platform issue that code failing to pass on some tests

* uucore/format: inline var in format string

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-07-01 15:15:32 +02:00
..
src/lib printf: Check precision before writing into stdout (#6511) 2024-07-01 15:15:32 +02:00
Cargo.toml Merge pull request #6452 from sylvestre/base64 2024-06-27 09:47:52 +02:00
LICENSE Include license text in all published crates 2022-03-05 21:21:46 +01:00