PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
54
stars
24
forks
source link
Passing a null pointer to extract_byte_string causes Python to segfault #237
Closed
johngarvin-quantinuum closed 1 year ago
Describe the bug
extract_byte_string
causes Python to segfault if its argument is a Value representing a null pointer.To Reproduce
Expected behavior
I would expect
extract_byte_string
to return None or raise an exception in this case.System information