[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/53476 CVS commit: src/external/bsd/cron/dist
The following reply was made to PR bin/53476; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
Subject: PR/53476 CVS commit: src/external/bsd/cron/dist
Date: Sat, 28 Jul 2018 13:51:26 +0000
Module Name: src
Committed By: kre
Date: Sat Jul 28 13:51:26 UTC 2018
Fix from Michael Kaufmann in PR bin/53476
Do modulus using unsigned arith, and then convert the result to
int, rather than converting the arc4random() result to int (which
might be negative) and performing a modulus on that (with a
potentially negative answer).
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/cron/dist/entry.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |