Project

General

Profile

Actions

Bug #2022

closed

libnisdb mis-compares strings

Added by Rich Lowe almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2012-01-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

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

Actions

Also available in: Atom PDF