Bug #2022

libnisdb mis-compares strings

Added by Rich Lowe over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:2012-01-24
Priority:NormalDue date:
Assignee:Rich Lowe% Done:


Category:lib - userland libraries
Target version:-
Difficulty:Bite-size Tags:


libnisdb uses == to compare strings with string constants. It's in theory possible that this does, or has, worked, since if they are equal they will be so by being literally assigned from the constant and, depending on compiler, this might be enough. It's not guaranteed to be though, it should be using strcmp()


#1 Updated by Rich Lowe over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 60 to 100
  • Tags deleted (needs-triage)

Resolved in r13582 commit:64b0427edfc3

Also available in: Atom