mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 21:49:07 +08:00
Merge pull request #849 from rouault/random_seed_toctou
random_seed.c: add a Coverity Scan suppression
This commit is contained in:
@@ -229,6 +229,7 @@ static int get_dev_random_seed(int *seed)
|
||||
if ((buf.st_mode & S_IFCHR) == 0)
|
||||
return -1;
|
||||
|
||||
/* coverity[toctou] */
|
||||
int fd = open(dev_random_file, O_RDONLY);
|
||||
if (fd < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user