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

Dereference before NULL check in nscd.c #3013

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed

Dereference before NULL check in nscd.c #3013

sssd-bot opened this issue May 2, 2020 · 0 comments
Labels
Closed: Fixed Issue was closed as fixed.

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/1971

  • Created at 2013-06-07 07:41:57 by jhrozek
  • Closed as Fixed
  • Assigned to okos

193

CID 11852: Dereference before null check (REVERSE_INULL) [select issue]
   
CID 11853: Dereference before null check (REVERSE_INULL) [select issue]
   
CID 11851: Dereference before null check (REVERSE_INULL)check_after_deref: Null-checking "entry" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
194        if (entry   != NULL &&
195            service != NULL &&
196            enabled != NULL) {

Comments


Comment from jhrozek at 2013-06-07 07:44:18

I suggested the NULL checks during code review but reading the code now more carefully the worst case that can happen is that all pointers will point to "line" so maybe the checks can be removed. Please test with malformed lines (two out of three valid keywords etc).


Comment from jhrozek at 2013-06-07 07:45:34

Fields changed

coverity: 11851 => 11851,11852


Comment from jhrozek at 2013-06-07 07:50:45

Fields changed

coverity: 11851,11852 => 11851,11852,11853


Comment from okos at 2013-06-07 14:44:01

Fields changed

patch: 0 => 1
status: new => assigned


Comment from jhrozek at 2013-06-10 11:43:19

A Coverity bug can be moved to 1.10 beta directly w/o waiting on the triage.

milestone: NEEDS_TRIAGE => SSSD 1.10 beta
resolution: => fixed
status: assigned => closed


Comment from jhrozek at 2013-06-13 16:19:56

Fields changed

rhbz: => 0


Comment from jhrozek at 2017-02-24 14:54:49

Metadata Update from @jhrozek:

  • Issue assigned to okos
  • Issue set to the milestone: SSSD 1.10 beta
@sssd-bot sssd-bot added the Closed: Fixed Issue was closed as fixed. label May 2, 2020
@sssd-bot sssd-bot closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

No branches or pull requests

1 participant