Re: [PATCH] graph: replace strtok with strtok_r

2024-11-19 Thread Thomas Monjalon
12/09/2024 03:29, fengchengwen: > On 2024/9/12 8:55, Stephen Hemminger wrote: > > The function strtok is not thread safe, better to use strtok_r. > > This patch was found by running semgrep on the DPDK repository. > > > > Signed-off-by: Stephen Hemminger > Acked-by: Chengwen Feng Applied, thank

Re: [PATCH] graph: replace strtok with strtok_r

2024-09-11 Thread fengchengwen
Acked-by: Chengwen Feng There are many strtok invoking in DPDK current, and Hai Jie already submitted a patchset [1], and it seemed interrupted. Perhaps it's time to re-submit. [1] https://inbox.dpdk.org/dev/20231114110006.91148-1-haij...@huawei.com/ On 2024/9/12 8:55, Stephen Hemminger wrote:

[PATCH] graph: replace strtok with strtok_r

2024-09-11 Thread Stephen Hemminger
The function strtok is not thread safe, better to use strtok_r. This patch was found by running semgrep on the DPDK repository. Signed-off-by: Stephen Hemminger --- app/graph/graph.c | 6 +++--- app/graph/utils.c | 18 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff