]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Handle edge case in fr_rand_init() and, we suspect, oveflow (CID #1604611) (#5434)
authorJames Jones <jejones3141@gmail.com>
Sun, 12 Jan 2025 20:51:22 +0000 (14:51 -0600)
committerGitHub <noreply@github.com>
Sun, 12 Jan 2025 20:51:22 +0000 (14:51 -0600)
commit65f211c945ca787d21e1b7f3604db04ae949f956
tree605353aeef42f401bc6f1456c76e06a39984e2de
parentcd4ccacf1958b1605f56d2914dbe3b1febf1a343
Handle edge case in fr_rand_init() and, we suspect, oveflow  (CID #1604611) (#5434)

To handle the rare case of not filling fr_rand_pool.randrsl in a single read,
adjust the location passed to read() to skip what was read in a previous
interation. This is done in a way consistent with the handling of this case
in 3.x, which should also deal with the overflow_sink complaint from Coverity.
src/lib/util/rand.c