Skip to content
Snippets Groups Projects
Commit 22af8b25 authored by Nikita Nemkin's avatar Nikita Nemkin
Browse files

SystemTools: Fix invalid memory access in ConvertToUnixSlashes

Don't use npos as an index. But passing it to substr() and doing
arithmetic with it is safe.

Remove unnecessary use of c_str() for extra safety.

Issue: cmake/cmake#26667
parent 2ab910a3
No related branches found
No related tags found
1 merge request!325SystemTools: Improve repeated slash handling in ConvertToUnixSlashes
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment