> -Original Message-
> From: Parthasarathy, JananeeX M
> Sent: Friday 15 February 2019 11:08
> To: Yigit, Ferruh ; Poornima, PallantlaX
> ; dev@dpdk.org
> Cc: Pattan, Reshma ; Mokhtar, Amr
> ; sta...@dpdk.org
> Subject: RE: [dpdk-dev] [PATCH] app/testbbdev: f
> -Original Message-
> From: Poornima, PallantlaX
> Sent: Monday 4 February 2019 07:16
> To: dev@dpdk.org
> Cc: Pattan, Reshma ; Mokhtar, Amr
> ; Poornima, PallantlaX
> ; sta...@dpdk.org
> Subject: [PATCH] app/testbbdev: fix sprintf with snprintf
>
> sprintf function is not secure as it
On 2/4/2019 7:15 AM, Pallantla Poornima wrote:
> @@ -825,7 +825,7 @@
>
> test_bbdev_driver_init(void)
>
> TEST_ASSERT_FAIL(rte_bbdev_release(NULL),
> "Failed to uninitialize bbdev driver with NULL bbdev");
> - sprintf(name_tmp, "%s", "invalid_name");
> + snprintf(name_tmp, sizeof(name_tmp), "%s"
sprintf function is not secure as it doesn't check the length of string.
More secure function snprintf is used.
Fixes: f714a18885 ("app/testbbdev: add test application for bbdev")
Cc: sta...@dpdk.org
Signed-off-by: Pallantla Poornima
---
app/test-bbdev/test_bbdev.c | 8
1 file changed,
4 matches
Mail list logo