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

Avoid integer overrun in NIOHTTPResponsiveness #247

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

rnro
Copy link
Contributor

@rnro rnro commented Jan 31, 2025

We use 8*10^9 in NIOHTTPResponsiveness however this number will overrun the integer size on platforms with 32-bit pointer-width such as watchOS.

This change drops down to use 1*10^9 on such platforms.

We use 8*10^9 in NIOHTTPResponsiveness however this number will overrun the integer size on platforms with 32-bit pointer-width such as watchOS. This change drops down to use 1*10^9 on such platforms.
@rnro rnro added the 🔨 semver/patch No public API change. label Jan 31, 2025
@rnro rnro changed the title Update ResponsivenessConfig.swift Avoid integer overrun in NIOHTTPResponsiveness Jan 31, 2025
@Lukasa Lukasa merged commit 926c3e1 into main Jan 31, 2025
22 of 23 checks passed
@Lukasa Lukasa deleted the avoid_interger_overrun branch January 31, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants