https://bugs.linaro.org/show_bug.cgi?id=2779

            Bug ID: 2779
           Summary: CID 173342:  Error handling issues  (CHECKED_RETURN)
           Product: OpenDataPlane - linux- generic reference
           Version: v1.11.0.0
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: trivial
          Priority: ---
         Component: General ODP
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

*** CID 173342:  Error handling issues  (CHECKED_RETURN)
/example/l3fwd/odp_l3fwd_db.c: 397 in create_fwd_db_entry()
391                     case 1:
392                             strncpy(entry->oif, token, OIF_LEN - 1);
393                             entry->oif[OIF_LEN - 1] = 0;
394                             *oif = entry->oif;
395                             break;
396                     case 2:
>>>     CID 173342:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "odph_eth_addr_parse" without checking return value (as is done 
>>> elsewhere 18 out of 21 times).
397                             odph_eth_addr_parse(&entry->dst_mac, token);
398                             *dst_mac = entry->dst_mac.addr;
399                             break;
400
401                     default:
402                             printf("ERROR: extra token \"%s\" at position
%d\n",

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to