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

Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131) found with Clang Static Analyzer #1

Open
xiangzhai opened this issue Dec 23, 2016 · 1 comment
Labels

Comments

@xiangzhai
Copy link

Unix API Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131) btrfs/utils.c zero_blocks line 577

xiangzhai added a commit that referenced this issue Dec 23, 2016
It was detected by Clang Static Analyzer #1
so I just add assert() to tell Clang Static Analyzer that this path is
unreachable.

Reviewers: @yetist
@xiangzhai xiangzhai added the bug label Dec 23, 2016
@xiangzhai
Copy link
Author

@hellogithubok have you tested btrfs yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant