Bug 715282 - Defects revealed by coverity scan
Summary: Defects revealed by coverity scan
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yp-tools
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Honza Horak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-22 12:25 UTC by Michal Luscon
Modified: 2011-08-09 11:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-28 09:57:07 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Michal Luscon 2011-06-22 12:25:08 UTC
Description of problem:

yppasswd.c:667 - After if statement "pwd->pw_passwd" still might be null and function strncmp (line #683) may dereference it.

/src/yppasswd.c:451 - Function open returns -1 and variable fd is consequently tested only for NONULL.

Version-Release number of selected component (if applicable):
2.9-10


Note You need to log in before you can comment on or make changes to this bug.