Traceback (most recent call last):
File "test.py", line 3, in <module>
simdjson.Parser().parse(memoryview(b""))
File "simdjson/csimdjson.pyx", line 484, in csimdjson.Parser.parse
IndexError: Out of bounds on buffer access (axis 0)
It should raise a ValueError complaining that no JSON was found rather than an index error, as an empty bytes does.
This code will result in an out of bounds memory access exception:
The output is
It should raise a ValueError complaining that no JSON was found rather than an index error, as an empty bytes does.