Skip to content

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

Merged
sunfishcode merged 1 commit intobytecodealliance:mainfrom
Stebalien:steb/getxattr-darwin-empty
Apr 15, 2024
Merged

Pass null instead of empty slices to getxattr and fgetxattr on macos#1045
sunfishcode merged 1 commit intobytecodealliance:mainfrom
Stebalien:steb/getxattr-darwin-empty

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
@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