Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librc: Use proper string length in file_regex.
Currently the code uses the total size of the buffer as the bounds for looping \0 separated fields, which leads to reading uninitialized data and possibly overrun the buffer during regexec. Observed on musl while matching /proc/cpuinfo.
- Loading branch information