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

Check for NULL after dereference in rpmfi.c #1782

Closed
ex0z3 opened this issue Sep 21, 2021 · 0 comments · Fixed by #1784
Closed

Check for NULL after dereference in rpmfi.c #1782

ex0z3 opened this issue Sep 21, 2021 · 0 comments · Fixed by #1784
Assignees

Comments

@ex0z3
Copy link

ex0z3 commented Sep 21, 2021

Issues were detected by static analyzer:
#1
#2
#3
#4
#5
#6
in call arguments: fi->files, fi ? fi->i : -1
in 1st argument - we dereferencing a pointer, in 2nd argument we check this pointer for null

@ffesti ffesti self-assigned this Sep 22, 2021
ffesti added a commit to ffesti/rpm that referenced this issue Sep 22, 2021
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
ffesti added a commit that referenced this issue Sep 28, 2021
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: #1782
mikhailnov pushed a commit to mikhailnov/rpm that referenced this issue Sep 30, 2021
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
dmnks pushed a commit to dmnks/rpm that referenced this issue Jun 7, 2022
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
(cherry picked from commit 470498b)
dmnks pushed a commit to dmnks/rpm that referenced this issue Jun 7, 2022
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
(cherry picked from commit 470498b)
dmnks pushed a commit to dmnks/rpm that referenced this issue Jun 7, 2022
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
(cherry picked from commit 470498b)
dmnks pushed a commit to dmnks/rpm that referenced this issue Jun 8, 2022
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: rpm-software-management#1782
(cherry picked from commit 470498b)
dmnks pushed a commit that referenced this issue Jul 1, 2022
No point in allowing NULL only for one of the arguments.

Thanks to ex0z3 (https://github.com/ex0z3) for reporting!

Resolves: #1782
(cherry picked from commit 470498b)
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 a pull request may close this issue.

2 participants