Skip to content

Commit

Permalink
Ignore coverity scan issue 79031
Browse files Browse the repository at this point in the history
Don't call -- The called function is unsafe for security related code.
Could result in a security violation.

However, this is not security related code so the issue is a false
positive.
  • Loading branch information
sm0svx committed Jan 21, 2015
1 parent fb30ea9 commit fdd7e51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/svxlink/modules/echolink/ModuleEchoLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1843,6 +1843,7 @@ void ModuleEchoLink::handleCommand(const string& cmd)
if (count > 0)
{
srand(time(NULL));
// coverity[dont_call]
size_t random_idx = (size_t)(count * ((double)rand() / (1.0 + RAND_MAX)));
StationData station = nodes[random_idx];

Expand Down

0 comments on commit fdd7e51

Please sign in to comment.