Bug #2022

libnisdb mis-compares strings

Added by Rich Lowe about 2 years ago. Updated about 2 years ago.

Status:Resolved Start date:2012-01-24
Priority:Normal Due date:
Assignee:Rich Lowe % Done:

100%

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

Description

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()

History

Updated by Rich Lowe about 2 years ago

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

Resolved in r13582 64b0427edfc3

Also available in: Atom PDF