#85 coverity: main: negative return value from "read" is not handled correctly
Closed: wontfix None Opened 12 years ago by mkosek.

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.

This issue was fixed some time ago. We currently check for negative return value from read() in ldif.c:main():

{{{
while ( (nread = read( 0, buf, BUFSIZ )) != 0 ) {
if (nread < 0) {
perror( "read error" );
return( 1 );
}
}}}

Added initial screened field value.

Metadata Update from @nkinder:
- Issue set to the milestone: 1.2.11.a1

7 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/85

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Invalid)

3 years ago

Login to comment on this ticket.

Metadata