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

            Bug ID: 1394
           Summary: CID 56895: Buffer not null terminated:
                    odp_packet_netmap.c
           Product: OpenDataPlane
           Version: 1.0
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: Netmap
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

*** CID 56895:  Buffer not null terminated  (BUFFER_SIZE_WARNING)
/platform/linux-generic/odp_packet_netmap.c: 72 in nm_do_ioctl()
66      if (fd < 0) {
67              ODP_ERR("Error: cannot get device control socket\n");
68              return -1;
69      }
70
71      memset(&ifr, 0, sizeof(ifr));
>>>     CID 56895:  Buffer not null terminated  (BUFFER_SIZE_WARNING)
>>>     Calling strncpy with a maximum size argument of 16 bytes on destination 
>>> array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the destination 
>>> string unterminated.
72      strncpy(ifr.ifr_name, pkt_nm->ifname, sizeof(ifr.ifr_name));
73
74      switch (cmd) {
75      case SIOCSIFFLAGS:
76              ifr.ifr_flags = pkt_nm->if_flags & 0xffff;
77              break;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to