opstr points to a string under Python control, which can be released before its value is copied into op->buf_asm (due to the call to Py_DECREF prior to calling r_strbuf_set).
The fix copies the value immediately, before decrementing Python's ref counter.
opstr
points to a string under Python control, which can be released before its value is copied intoop->buf_asm
(due to the call toPy_DECREF
prior to callingr_strbuf_set
).The fix copies the value immediately, before decrementing Python's ref counter.