[dev] New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Wed Aug 29 13:23:42 EDT 2018


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.


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


** CID 1473088:  Memory - corruptions  (INTEGER_OVERFLOW)
/lib/ferr.c: 151 in log_ref_display()


________________________________________________________________________________________________________
*** CID 1473088:  Memory - corruptions  (INTEGER_OVERFLOW)
/lib/ferr.c: 151 in log_ref_display()
145     			char pbuf[256];
146     			char ubuf[256];
147     
148     			snprintf(pbuf, sizeof(pbuf), "\nError %"PRIu32" - %s",
149     				 ref->code, ref->title);
150     			memset(ubuf, '=', strlen(pbuf));
>>>     CID 1473088:  Memory - corruptions  (INTEGER_OVERFLOW)
>>>     Overflowed or truncated value (or a value computed from an overflowed or truncated value) "strlen(pbuf) - 1UL" used as array index.
151     			ubuf[strlen(pbuf) - 1] = '\0';
152     
153     			vty_out(vty, "%s\n%s\n", pbuf, ubuf);
154     			vty_out(vty, "Description:\n%s\n\n", ref->description);
155     			vty_out(vty, "Recommendation:\n%s\n", ref->suggestion);
156     		}


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeHs8691VOJpZofPkpp-2BRBqc-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJlsDrLGdX5FSGEXJypTLxkOgAJvIkL0h79uxfC2Re0dCF7zOpIM-2BhwiNDnmlWjMJJWckwS2D3W0E1Rx9L8JIZKuhsFbG7zgZl8-2BxNfuLFN2H5UgXM5yuZFe9t14Vl-2BsLL7-2F9NDYAYRn3izTrr1SJxzpMtfWhYTJskoCh598-2FEzNqA-3D-3D




More information about the dev mailing list