fix analyzer use of uninitialized char variable's value #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ae3f/aclspv!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kenter7317/aclspv:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summerized Information
there is some analyzer use of uninitialized char variable's value, i find it since when i test under the below environment. then i initialized those value with '\0'
Environment
The Corresponding error message
Changes
in project-root/lib/attr/wrkgroup.h
origin
in fix commit
i don't know specific kinds of solution about this problem, then i initialize those variable '\0'
@seealso https://cwe.mitre.org/data/definitions/457.html
Adding an initialiser seems to be solid fix.
However two factors seems to be questionable:
I have suggestion for you: Delete the macro
ZEROwhich has very faulty behaviour.@dalmurii wrote in #3 (comment):
FIX that questionable point. That macro is useless, i delete that
Squishing commits would be required to keep diff simple
fix analyzer use of uninitialized char variable's valueto WIP: fix analyzer use of uninitialized char variable's valueWIP: fix analyzer use of uninitialized char variable's valueto fix analyzer use of uninitialized char variable's value3f14c85af3tob694557086@dalmurii wrote in #3 (comment):
compeleted