RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 834051 - coverity: main: negative return value from "read" is not handled correctly
Summary: coverity: main: negative return value from "read" is not handled correctly
Keywords:
Status: CLOSED DUPLICATE of bug 609590
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-20 17:57 UTC by Nathan Kinder
Modified: 2020-09-13 19:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-09 22:47:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 85 0 None None None 2020-09-13 19:50:50 UTC

Description Nathan Kinder 2012-06-20 17:57:58 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/85

https://bugzilla.redhat.com/show_bug.cgi?id=602525

{{{
Description of problem:
11956 NEGATIVE_RETURNS Triaged Bug Minor Fix Required main()
File: ds/ldap/servers/slapd/tools/ldif.c

Status:         New     ?       Triaged
Classification:         Unclassified    ?       Bug
Action:         Undecided       ?       Fix Required
Severity:       Unspecified     ?       Minor

Comment:
minor problem in the ldif tool - no fix required for 8.2 because this is in a
seldom used command line tool.
}}}

Note - this will need to be verified by a developer by ensuring that the coverity does not report this issue anymore.

Comment 1 Noriko Hosoi 2012-07-09 22:47:44 UTC
> This issue was fixed some time ago. We currently check for negative return value from read() in ldif.c:main():

Fixed in this commit on 06/30/2010.
commit 4739bf587db66c9d8ceabd446dabbe03bc3a0664
Author: Rich Megginson <rmeggins>
Date:   Wed Jun 30 10:52:05 2010 -0600

*** This bug has been marked as a duplicate of bug 609590 ***


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