Coverity-updates archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Defects reported by Coverity Scan for NetBSD-i386-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-i386-kernel
found with Coverity Scan.
Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 979525: Uninitialized scalar variable (UNINIT)
/common/lib/libc/string/strpbrk.c: 73 in strpbrk()
________________________________________________________________________________________________________
*** CID 979525: Uninitialized scalar variable (UNINIT)
/common/lib/libc/string/strpbrk.c: 73 in strpbrk()
67 if (charset[0] == '\0')
68 return NULL;
69 if (charset[1] == '\0')
70 return strchr(s, charset[0]);
71
72 for (; *charset != '\0'; ++charset)
>>> CID 979525: Uninitialized scalar variable (UNINIT)
>>> Using uninitialized value "inv[(unsigned int)(unsigned char)*charset]".
73 ADD_TO_SET(UC(*charset));
74
75 for (; *s != '\0'; ++s)
76 if (IS_IN_SET(UC(*s)))
77 return __UNCONST(s);
78 return NULL;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
http://scan.coverity.com/projects/1450?tab=overview
To unsubscribe from the email notification for new defects,
http://scan5.coverity.com/cgi-bin/unsubscribe.py
Home |
Main Index |
Thread Index |
Old Index