summaryrefslogtreecommitdiffstats
path: root/combi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-07-27 08:08:02 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-07-27 08:08:02 -0700
commit72c116a11ca38a5edc84790404b8439796b4c40c (patch)
treeef4826d89bbd360db644fe51cd855012f475eee1 /combi.h
parent87456836e1bd7d1e35a92d55a830e1c1f1f7ccff (diff)
downloadtxr-72c116a11ca38a5edc84790404b8439796b4c40c.tar.gz
txr-72c116a11ca38a5edc84790404b8439796b4c40c.tar.bz2
txr-72c116a11ca38a5edc84790404b8439796b4c40c.zip
FFI: bugfix: pointer "in" ops must map null to nil.
* ffi.c (ffi_ptr_in_in, ffi_ptr_in_d_in, ffi_ptr_out_in, ffi_ptr_out_s_in): If the memory location which holds the pointer to the C object is null, then just return nil. If we don't do this, we then crash trying to extract the object from a null pointer via the recursive tgtft->in or tgtft->get call.
Diffstat (limited to 'combi.h')
0 files changed, 0 insertions, 0 deletions