Files
Nick Lanham 2788762c63 fix JSON decoder error checking for UTF16 / surrogate parsing panic (#7721)
# Which issue does this PR close?

- Closes #7712 .

# Rationale for this change

Shouldn't panic, especially in a fallible function.

# What changes are included in this PR?

Validate that the high and low surrogates are in the expected range,
which guarantees that the subtractions won't overflow.

# Are there any user-facing changes?

No (well, things that used to panic now won't, but I don't think that
counts)
2025-06-22 08:34:28 -04:00
..