]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf+cmdparse: check sanity of configured integer values
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Mar 2025 13:35:54 +0000 (14:35 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2025 15:04:09 +0000 (16:04 +0100)
commit8fd386f287572e06385bced6eeb800f5883c302f
treea0841d7889f237b55ba97f6683bec74ae91f3d54
parente694ae769a4942e35450cc19c6ab065c680edada
conf+cmdparse: check sanity of configured integer values

Verify that integer values specified in the configuration are sane:
interval log2 values are between -32 and 32, ports between 0 and 65535,
stratum between 0 and 16, values that should not be negative are not
negative, numbers that specify large intervals in seconds fit in the
32-bit integer, numbers don't have non-digit characters, etc.
cmdparse.c
conf.c