aboutsummaryrefslogtreecommitdiff
path: root/src/lib/confmgt/unitparse.c
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-03-05Merge branch 'maint-0.4.3'Nick Mathewson
2020-02-26confmgt: when a units value is invalid, include a meaningful error.Nick Mathewson
Part of 33460.
2020-02-06Wrap columnar tables in "clang-format off/on"Nick Mathewson
These tables have aligned comments, so we don't want clang-format to mess with them.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-11-11Light grammar editsNick Mathewson
2019-10-28Check memunit parsing for overflow in confparseJosé M. Guisado
Before, when parsing memunits, if overflow occured it failed silently. Use nowrap u64 math to detect overflow, compare to INT64_MAX and if greater tell user and fail accordingly. 15000000.5 TB fails double check as it a greater floating number than (double)INT64_MAX 8388608.1 TB passes double check because it falls in the same value as (double)INT64_MAX (which is 2^63), but will fail the int check because (uint64_t)d, which is 2^63, is strictly greater than 2^63-1 (INT64_MAX). Fixes #30920 Signed-off-by: José M. Guisado <guigom@riseup.net>
2019-06-24Add unit tests for the unitparse.c module.Nick Mathewson
2019-06-24Move unit-parsing code to src/lib/confmgtNick Mathewson
lib/confmgt is at a higher level than lib/conf, since it needs to call down to logging and similar modules.