You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reject integer overflow while parsing environment values #424
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
_env_parse_i64 accumulates digits with value * 10 + digit without checking the signed 64-bit range. Out-of-range environment values can therefore overflow instead of returning an error.
Relevant code
std/env/parse.wave
std/env/environ.wave
Scope
Add explicit overflow detection for positive and negative inputs, including the asymmetric i64::MIN boundary. Keep env_get_i64 and env_get_i32 returning an unsuccessful EnvResult for invalid input.
Acceptance criteria
Decimal i64 minimum and maximum values parse successfully.
Values one step outside either boundary are rejected.
Leading + and - retain their current behavior.
Empty, sign-only, and non-decimal strings remain rejected.
env_get_i32 continues to reject values outside the signed 32-bit range.
Boundary regression cases are added to the test corpus.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity