New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Sat Aug 7 09:17:00 UTC 2021


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.
1 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 1506222:  Error handling issues  (CHECKED_RETURN)
/lib/frrlua.c: 243 in lua_decode_sockunion()


________________________________________________________________________________________________________
*** CID 1506222:  Error handling issues  (CHECKED_RETURN)
/lib/frrlua.c: 243 in lua_decode_sockunion()
237     	lua_setfield(L, -2, "string");
238     }
239     
240     void lua_decode_sockunion(lua_State *L, int idx, union sockunion *su)
241     {
242     	lua_getfield(L, idx, "string");
>>>     CID 1506222:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "str2sockunion" without checking return value (as is done elsewhere 20 out of 21 times).
243     	str2sockunion(lua_tostring(L, -1), su);
244     	lua_pop(L, 1);
245     	/* pop the table */
246     	lua_pop(L, 1);
247     }
248     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DE-wd_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTzQUETE7PwW5ESwi-2BYWz29VyT6iHmXcSiJnzKUzdt8Zt5R8xXIMUx4Y60DVcfqd9pxpT-2Bargd-2B3Ux1EfluN1G95Xp55nYl1Ma6DgQnm10zIvYh-2Fd88mF-2FkfNnPOK-2FvW2L2-2FOvjlNJCE-2BHlmTjVh9XBMAFSwelZi17U-2FRcn7Rv-2BfLA-3D-3D




More information about the dev mailing list