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

Fix issue #181 (should validate cfInode) #182

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

xyhuang7215
Copy link
Contributor

CFNumberGetValue will crash if cfInode is nullptr, which can occur when events lack inode information (e.g., file system events).
I'm not certain which exact event triggers this, but an easy way to reproduce the crash is to create a folder with many files and then delete it.
(In my environment, I created a folder with 1000 files and used rm -r to remove it.)

@SpartanJ SpartanJ merged commit aa4b29e into SpartanJ:master Sep 4, 2024
3 checks passed
@SpartanJ
Copy link
Owner

SpartanJ commented Sep 4, 2024

Thank you very much! I wasn't expecting this issue, I thought the inode information was guaranteed, thanks again :)

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.

2 participants