Skip to content

Commit

Permalink
fix the overflow vulnerability (#3)
Browse files Browse the repository at this point in the history
fix the overflow vulnerability
  • Loading branch information
Crispy-fried-chicken committed Aug 22, 2024
1 parent 8bfe19f commit c5aad87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uct_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ power(uct_int_t x, uct_int_t n)
{
if (n == 0)
return 1;
int res = power(x, n / 2);
uct_int_t res = power(x, n / 2);
if (n % 2 != 0)
return res * res * x;
else
Expand Down

0 comments on commit c5aad87

Please sign in to comment.