[PATCH] graph: replace strtok with strtok_r

Thomas Monjalon thomas at monjalon.net
Tue Nov 19 12:26:17 CET 2024


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 <stephen at networkplumber.org>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>

Applied, thanks.

> 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-haijie1@huawei.com/

Waiting for a v6




More information about the dev mailing list