Skip to content

Commit

Permalink
Internal libjson: silence 'toctou'
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 14, 2024
1 parent 05ea86d commit ca1e764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ogr/ogrsf_frmts/geojson/libjson/random_seed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ca1e764

Please sign in to comment.