pyjson5 icon indicating copy to clipboard operation
pyjson5 copied to clipboard

loads: OverflowError while decoding too big escaped Unicode character

Open Kijewski opened this issue 8 months ago • 0 comments

pyjson5.loads(r'{\U11111111: 2}')

File src/_decoder.pyx:509, in pyjson5.pyjson5._decode_identifier_name()

File src/_decoder.pyx:113, in pyjson5.pyjson5._get_hex_character()

File src/_raise_decoder.pyx:39, in pyjson5.pyjson5._raise_expected_s()

OverflowError: %c arg not in range(0x110000)

Should raise a Json5DecoderException instead

Kijewski avatar Oct 15 '23 19:10 Kijewski