tcpdump mailing list archives

New Defects reported by Coverity Scan for the-tcpdump-group/libpcap


From: scan-admin () coverity com
Date: Fri, 18 Apr 2014 06:24:13 -0700


Hi,


Please find the latest report on new defect(s) introduced to the-tcpdump-group/libpcap found with Coverity Scan.

Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 711715:  Same on both sides  (CONSTANT_EXPRESSION_RESULT)
/usr/include/x86_64-linux-gnu/bits/stdio2.h: 279 in fread()


________________________________________________________________________________________________________
*** CID 711715:  Same on both sides  (CONSTANT_EXPRESSION_RESULT)
/usr/include/x86_64-linux-gnu/bits/stdio2.h: 279 in fread()
273     __extern_always_inline __wur size_t
274     fread (void *__restrict __ptr, size_t __size, size_t __n,
275            FILE *__restrict __stream)
276     {
277       if (__bos0 (__ptr) != (size_t) -1)
278         {
    CID 711715:  Same on both sides  (CONSTANT_EXPRESSION_RESULT)
    The expression "1 /* !0 */ || 1 /* !0 */" does not accomplish anything because it evaluates to either of its 
identical operands, "1 /* !0 */".
279           if (!__builtin_constant_p (__size)
280               || !__builtin_constant_p (__n)
281               || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))
282             return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
283     
284           if (__size * __n > __bos0 (__ptr))


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/120?tab=Overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py



_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: