[3777] in BarnOwl Developers
New Defects reported by Coverity Scan for barnowl/barnowl
daemon@ATHENA.MIT.EDU (scan-admin@coverity.com)
Mon May 5 06:59:38 2014
To: undisclosed-recipients:;
Date: Mon, 05 May 2014 03:59:29 -0700
From: scan-admin@coverity.com
Hi,
Please find the latest report on new defect(s) introduced to barnowl/barnowl found with Coverity Scan.
Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 43365: Argument cannot be negative (REVERSE_NEGATIVE)
/filterproc.c: 70 in send_receive()
/filterproc.c: 70 in send_receive()
________________________________________________________________________________________________________
*** CID 43365: Argument cannot be negative (REVERSE_NEGATIVE)
/filterproc.c: 70 in send_receive()
64 } else if(fds[0].revents & (POLLHUP | POLLERR)) {
65 err = 0;
66 break;
67 }
68 }
69
>>> CID 43365: Argument cannot be negative (REVERSE_NEGATIVE)
>>> You might be using variable "wfd" before verifying that it is >= 0.
70 if (wfd >= 0) close(wfd);
71 close(rfd);
72 *in = g_string_free(str, err < 0);
73 return err;
74 }
75
/filterproc.c: 70 in send_receive()
64 } else if(fds[0].revents & (POLLHUP | POLLERR)) {
65 err = 0;
66 break;
67 }
68 }
69
>>> CID 43365: Argument cannot be negative (REVERSE_NEGATIVE)
>>> You might be using variable "wfd" before verifying that it is >= 0.
70 if (wfd >= 0) close(wfd);
71 close(rfd);
72 *in = g_string_free(str, err < 0);
73 return err;
74 }
75
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/1962?tab=Overview
To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py