The length of valid codepoints was incorrectly
calculated which was not caught before because the
absence of tests for the valid codepoints scenario.
Details
Details
- Reviewers
- None
- Commits
- rGbf45e27a676d: [Clang] Fix invalid utf-8 detection
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This breaks check-clang: http://45.33.8.238/linux/80462/step_7.txt
Please take a look and revert for now if it takes a while to fix.
Comment Actions
(Also on all other bots, e.g. https://lab.llvm.org/buildbot/#/builders/171/builds/17060 – did you run tests locally before committing?)
Comment Actions
Thanks, I was going to do that when I noticed you already did, very much appreciated.
The patch (well, the one before) appeared to have multiple off-by one errors that cancelled each other and were not caught due to insufficient test cases
Once I find a fix, I'll get it reviewed again. Sorry for the inconvenience