strings: Map does not handle invalid UTF-8 correctly #26305
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Map's loop does:
This is wrong if r is the error rune because s has invalid UTF-8. The loop should check this and flip to rewriting the string in that case.
The text was updated successfully, but these errors were encountered: