New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Thu Apr 16 19:45:03 EDT 2020
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
1 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
11 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 1 of 1 defect(s)
** CID 1492648: Memory - corruptions (REVERSE_NEGATIVE)
/lib/zlog.c: 243 in zlog_tls_buffer_init()
________________________________________________________________________________________________________
*** CID 1492648: Memory - corruptions (REVERSE_NEGATIVE)
/lib/zlog.c: 243 in zlog_tls_buffer_init()
237 snprintfrr(mmpath, sizeof(mmpath), "logbuf.%ld", zlog_gettid());
238
239 mmfd = openat(zlog_tmpdirfd, mmpath,
240 O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, 0600);
241 fchown(mmfd, zlog_uid, zlog_gid);
242
>>> CID 1492648: Memory - corruptions (REVERSE_NEGATIVE)
>>> You might be using variable "mmfd" before verifying that it is >= 0.
243 if (mmfd < 0) {
244 zlog_err("failed to open thread log buffer \"%s\": %s",
245 mmpath, strerror(errno));
246 goto out_anon;
247 }
248
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teEwtXAn74UdOrNjckt5W0LJ0CDxXoQFnSJSV51LhpQIExOPuUyDQ-2BIaYqt88E1d5-2F-2Fc-3D80fY_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTxSJWebTzEDE-2BxbHCe6Geii8URmQwtp-2FDq7y99kpheo7ozZOxsDrTMrViKb45JuD-2BE6JBDLBnNi-2Bt5wSSCGukRdClt-2BOC91OleddKf3zH6RABycleaHHvdTdGliWwb9GZgcZzNcsaA2WOWDad9vJvBrmphePTgHWkvDXzAIND0XV24nO5yZ-2Bp7psrdkdipnStXg-2BCtq9KJx1W1f3HvVG-2FoH
More information about the dev
mailing list