[PATCH 00/21] replace strtok with strtok_r
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 13 17:25:28 CET 2023
On Mon, 13 Nov 2023 18:45:29 +0800
Jie Hai <haijie1 at huawei.com> wrote:
> Multiple threads calling the same function may cause condition
> race issues, which often leads to abnormal behavior and can cause
> more serious vulnerabilities such as abnormal termination, denial
> of service, and compromised data integrity.
>
> The strtok() is non-reentrant, it is better to replace it with a
> reentrant function.
Lots of churn. And most of these places are never callable from
multiple threads.
It does indicate that some better arg handling is needed.
More information about the dev
mailing list