Skip to content

Comments

[bug] Fix int overflow #386

Merged
KCarretto merged 3 commits intomainfrom
fix-int-overflow
Dec 3, 2023
Merged

[bug] Fix int overflow #386
KCarretto merged 3 commits intomainfrom
fix-int-overflow

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
// 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
@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