Skip to content

Commit

Permalink
see if this satisfies codeql "uncontrolled value" message
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Nov 14, 2023
1 parent a80da84 commit 29c1733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quant.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ makemap_addi(i_quantize *quant, i_img **imgs, int count) {
} else {
/* let's try something else */
clr[i].used = 0;
clr[i].r=rand();
clr[i].g=rand();
clr[i].b=rand();
clr[i].r = rand() & 0xFF;
clr[i].g = rand() & 0xFF;
clr[i].b = rand() & 0xFF;
}

clr[i].dr=0;
Expand Down

0 comments on commit 29c1733

Please sign in to comment.