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

change memory parameters to signed integers to prevent signed to unsi… #167

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

d-netto
Copy link
Member

@d-netto d-netto commented Jul 11, 2024

PR Description

There are a bunch of places (i.e. here) where max_total_memory (previously unsigned) is compared to live_bytes.

This is problematic because it will lead to overflow in the comparison if live_bytes is negative (which should never happen, but we've seen in a few engines...)

Checklist

Requirements for merging:

@d-netto d-netto requested review from NHDaly and kpamnany July 11, 2024 20:11
@github-actions github-actions bot added port-to-v1.10 This change should apply to Julia v1.10 builds port-to-master This change should apply to all future Julia builds labels Jul 11, 2024
@d-netto d-netto removed the port-to-master This change should apply to all future Julia builds label Jul 11, 2024
@d-netto d-netto force-pushed the dcn-no-signed-to-unsigned-comparison branch from 632d320 to baaaee0 Compare July 12, 2024 15:22
Copy link
Member

@NHDaly NHDaly left a comment

Choose a reason for hiding this comment

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

thank you!

@d-netto d-netto merged commit 145375d into v1.10.2+RAI Jul 12, 2024
1 check passed
@d-netto d-netto deleted the dcn-no-signed-to-unsigned-comparison branch July 12, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port-to-v1.10 This change should apply to Julia v1.10 builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants