Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Nov 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.02%. Comparing base (cb455c6) to head (fd2ab23).
⚠️ Report is 761 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4993      +/-   ##
==========================================
+ Coverage   75.86%   78.02%   +2.16%     
==========================================
  Files         470      548      +78     
  Lines       37301    31419    -5882     
==========================================
- Hits        28299    24516    -3783     
+ Misses       7071     4851    -2220     
- Partials     1931     2052     +121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

}

v, err := strconv.ParseInt(str, 10, 64)
v, err := strconv.Atoi(str)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atoi already returns a platform-dependent int, it calls strconv.ParseInt(str, 10, 0)

@julio-lopez julio-lopez requested a review from Copilot November 16, 2025 06:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a potential integer overflow issue in the throttle setting functionality by using strconv.Atoi instead of strconv.ParseInt followed by an int conversion. This change eliminates the risk of overflow when converting a 64-bit integer to a platform-dependent int type.

Key Changes

  • Replaced strconv.ParseInt(str, 10, 64) with strconv.Atoi(str) to parse directly to int
  • Removed explicit int(v) conversion since strconv.Atoi already returns an int

@julio-lopez julio-lopez marked this pull request as ready for review November 16, 2025 06:36
@julio-lopez julio-lopez merged commit db4b89b into kopia:master Nov 16, 2025
27 checks passed
@julio-lopez julio-lopez deleted the fix/int-conv branch November 16, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant