Added
Source::getLine()returns the text of one line GHSA-f74w-4g25-pc7p
Fixed
- Denial of Service via memory exhaustion in
Source::getLocation()when locating an error after many lines, and via CPU time when locating or printing many errors in a large document GHSA-f74w-4g25-pc7p - Error columns after lines with multibyte characters GHSA-f74w-4g25-pc7p
- Error locations count only CR, LF and CRLF as line terminators, not U+2028 and U+2029, matching the GraphQL specification and graphql-js GHSA-f74w-4g25-pc7p
Source::getLocation()keeps a position between CR and LF on the preceding line, like graphql-js GHSA-f74w-4g25-pc7p