Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Fix int overflow #386

Merged
merged 3 commits into from
Dec 3, 2023
Merged

[bug] Fix int overflow #386

merged 3 commits into from
Dec 3, 2023

Conversation

KCarretto
Copy link
Collaborator

What type of PR is this?

/kind bug

What this PR does / why we need it:

Fixes an issue with the new gRPC API, where casting an int32 caused an int overflow, resulting in task ids being incorrectly reported to the agent when claimed.

@KCarretto KCarretto requested a review from hulto December 3, 2023 03:32
@@ -189,16 +189,16 @@ fn get_os_pretty_name() -> Result<String> {

// Async handler for port scanning.
async fn main_loop(config_path: String, loop_count_max: Option<i32>) -> Result<()> {
let debug = false;
let debug = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please set debug to false.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

Please set debug to false.
Otherwise LGTM.

@KCarretto KCarretto merged commit c0b59bf into main Dec 3, 2023
3 of 6 checks passed
@KCarretto KCarretto deleted the fix-int-overflow branch December 3, 2023 03:35
KCarretto added a commit that referenced this pull request Feb 1, 2024
 
[bug] Fix int overflow  (#386)

* Fix int overflow

* fix agent types

* debug=false
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.

2 participants