Upstream fixes for @yearly, @monthly, @weekly, @daily and @hourly.
authormillert <millert@openbsd.org>
Tue, 13 Jun 2023 15:36:21 +0000 (15:36 +0000)
committermillert <millert@openbsd.org>
Tue, 13 Jun 2023 15:36:21 +0000 (15:36 +0000)
commit314287cb0fc4d196d759a12ff1da4f7c4c004504
treea81a88f7d6289f3d5b6c9aef54a90fa1b7c8420a
parent14e2a040958ba4aae34e88f7b0f2412cd00e3274
Upstream fixes for @yearly, @monthly, @weekly, @daily and @hourly.
The bit_nset() macro was being called with the high value one too
large for the special strings.  There is no security impact due to
the layout of the bit strings but this was somewhat lucky.  This
introduces a set_range() function that performs range checks before
calling bit_nset().
usr.sbin/cron/entry.c