-
Notifications
You must be signed in to change notification settings - Fork 479
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
dwarf: Close file descriptors in setup_dwarf_info() #1918
dwarf: Close file descriptors in setup_dwarf_info() #1918
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add "dwarf:" prefix to the subject line. Also it would be short like "dwarf: Close file descriptors in setup_dwarf_info()". And you can add the details (like it was detected by xxx tool) in the message body.
This defect was detected by Facebook's Infer tool https://github.com/facebook/infer Signed-off-by: Ziming Zhou <zimingzh@umich.edu>
99ae2d9
to
4f59089
Compare
Hi @namhyung, thanks for your comment! It seems that the static analysis tool |
Oops, I clicked a wrong button. Can you please force push the branch with the latest change and remove my merge commit? |
63d8f9c
to
4f59089
Compare
@namhyung done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello @namhyung,
I've also run Facebook's Infer tool to check for potential defection in the current code base. I've made three adjustment to close file descriptor in setup_dwarf_info function to release acquired resource in
utils/dwarfs.c
. I've attached the complete infer report in bugs.txt and report.csv. The other detected defects seems trivial on my side. I'd be happy if you could take a look at them as well.