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-user
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.
2 new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.
13 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 979428: Uninitialized variables (UNINIT)
/bin/sh/eval.c: 1137 in evalcommand()
________________________________________________________________________________________________________
*** CID 979428: Uninitialized variables (UNINIT)
/bin/sh/eval.c: 1137 in evalcommand()
1131
1132 parent: /* parent process gets here (if we forked) */
1133 exitstatus = 0; /* if not altered just below */
1134 if (mode == FORK_FG) { /* argument to fork */
1135 exitstatus = waitforjob(jp);
1136 } else if (mode == FORK_NOJOB) {
>>> CID 979428: Uninitialized variables (UNINIT)
>>> Using uninitialized value "pip[0]".
1137 backcmd->fd = pip[0];
1138 close(pip[1]);
1139 backcmd->jp = jp;
1140 }
1141 FORCEINTON;
1142
** CID 1357526: Memory - illegal accesses (STRING_NULL)
/external/bsd/wpa/dist/src/drivers/driver_bsd.c: 1240 in wpa_driver_bsd_event_receive()
________________________________________________________________________________________________________
*** CID 1357526: Memory - illegal accesses (STRING_NULL)
/external/bsd/wpa/dist/src/drivers/driver_bsd.c: 1240 in wpa_driver_bsd_event_receive()
1234 rtm->rtm_version);
1235 return;
1236 }
1237 os_memset(&event, 0, sizeof(event));
1238 switch (rtm->rtm_type) {
1239 case RTM_IFANNOUNCE:
>>> CID 1357526: Memory - illegal accesses (STRING_NULL)
>>> Assigning: "ifan" = "(struct if_announcemsghdr *)rtm". Both now point to the same unterminated string.
1240 ifan = (struct if_announcemsghdr *) rtm;
1241 switch (ifan->ifan_what) {
1242 case IFAN_DEPARTURE:
1243 drv = bsd_get_drvindex(global, ifan->ifan_index);
1244 if (drv)
1245 drv->if_removed = 1;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/netbsd-i386-user?tab=overview
To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782
Home |
Main Index |
Thread Index |
Old Index