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

Pass null instead of empty slices to getxattr and fgetxattr on macos #1045

Merged

Conversation

Stebalien
Copy link
Contributor

fixes the remainder of #957
fixes Stebalien/xattr#57

0,
))
{
// Passing an empty to slice to getxattr leads to ERANGE on macOS. Pass null
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one wasn't reported, but I assume it has the same behavior.

@sunfishcode
Copy link
Member

Thanks!

@sunfishcode sunfishcode merged commit 48eeb83 into bytecodealliance:main Apr 15, 2024
42 of 43 checks passed
@Stebalien Stebalien deleted the steb/getxattr-darwin-empty branch April 15, 2024 16:01
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.

get_deref broken on Mac
2 participants