Open mitchgrout opened 2 months ago
This is a duplicate of #919, and a fix is already available in #1179.
I chose to trim away all whitespace in version number candidates instead of adding any special logic for \r
or modifying the splitting logic.
Unfortunately, it seems like this project is not getting maintained right now, so the PR has been open for 3 months without any feedback already.
gcov::parse_version currently splits words using either whitepace or newlines, but does not account for carriage returns. This can lead to failures to detect valid
gcov
binaries on Windows. Example using thew64devkit
bundled version ofgcov
:The gathered
versions
are["gcov", "(GCC)", "14.1.0<CR>"]
, all of which failVersion::parse
This could be fixed by adding
'\r'
into this list, or by usingchar.is_whitespace
orchar.is_ascii_whitespace