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

            Bug ID: 2149
           Summary: CID 159392:  Memory - illegal accesses
           Product: OpenDataPlane - linux- generic reference
           Version: 1.8
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: General ODP
          Assignee: lng-odp@lists.linaro.org
          Reporter: mike.hol...@linaro.org

/platform/linux-generic/test/shmem/shmem_linux.c: 103 in main()
97      int fifo_fd;
98      char shm_devname[PATH_MAX];/* shared mem device name, under /dev/shm */
99      int shm_fd;
100             test_shared_linux_data_t *addr;
101
102             /* odp app is in the same directory as this file: */
>>>     CID 159392:  Memory - illegal accesses  (BUFFER_SIZE_WARNING)
>>>     Calling strncpy with a maximum size argument of 4096 bytes on 
>>> destination array "prg_name" of size 4096 bytes might leave the destination 
>>> string unterminated.
103             strncpy(prg_name, argv[0], PATH_MAX);
104             sprintf(odp_name, "%s/%s", dirname(prg_name), ODP_APP_NAME);
105
106             /* start the ODP application: */
107             odp_app = fork();
108             if (odp_app < 0)  /* error */

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to