Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: isInCharacterRange checks for the wrong range #25172
Function isInCharacterRange supposedly checks that rune is inside the range(s) allowed by Section 2.2 of the referenced spec, but if has typo defining (sub)range boundary, having 0xDF77 instead of 0xD7FF.
This bug was masked because this function always gets its input from the call to utf8.DecodeRune that fails on surrogate range 0xd800-0xdfff.