scron

simple cron daemon
git clone git://git.2f30.org/scron
Log | Files | Refs | README | LICENSE

commit cdfe2821c56fe953ca8aa081ffb6c4a4805b1d3f
parent e5df717edacba518c22f455821da11fc9c72ff80
Author: Ari Malinen <ari.malinen@gmail.com>
Date:   Sun, 13 Jul 2014 12:05:12 +0300

parsefield() error checking for div

Diffstat:
Mcrond.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/crond.c b/crond.c @@ -277,6 +277,9 @@ parsefield(const char *field, long low, long high, struct field *f) if (max != -1) if (max < low || max > high) return -1; + if (div != -1) + if (div < low || div > high) + return -1; f->low = min; f->high = max;