[PATCH 00/21] replace strtok with strtok_r

Thomas Monjalon thomas at monjalon.net
Mon Nov 13 12:00:12 CET 2023


13/11/2023 11:45, Jie Hai:
> 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.

You should add a check in checkpatches.sh so we won't add more in future.





More information about the dev mailing list