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

[SR-10691] POSIXError 132 crash #53088

Closed
colemancda opened this issue May 15, 2019 · 3 comments
Closed

[SR-10691] POSIXError 132 crash #53088

colemancda opened this issue May 15, 2019 · 3 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@colemancda
Copy link
Contributor

Previous ID SR-10691
Radar None
Original Reporter @colemancda
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @colemancda
Priority Medium

md5: 9ef90abce9558210173e845dfbd01e53

Issue Description:

Accessing `POSIXError.code` on Linux with a error value of 132 currently crashes because the `POSIXErrorCode` enum only has 131 defined as the maximum value for errors.

@colemancda
Copy link
Contributor Author

#24806

@belkadan
Copy link
Contributor

It's kind of unfortunate that this was ever an enum. Maybe we can change it to a struct on non-Apple platforms?

@colemancda
Copy link
Contributor Author

Fixed in #24806

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants