Files
palladum-lightning/common/json_parse_simple.c
Matt Whitlock ea2feccbf8 common: set errno=0 before calling strto{l,ul,ull}
The strto{l,ul,ull} functions do not set errno upon a successful return, so a
successful return from a maximally valued input could be misinterpreted as an
overflow error if errno happened already to be set to ERANGE before the call.
To guard against this edge case, always set errno to zero before calling these
functions if checking errno afterward.

Changelog-None
2025-08-15 10:15:16 +09:30

14 KiB