diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-27 08:08:02 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-27 08:08:02 -0700 |
commit | 72c116a11ca38a5edc84790404b8439796b4c40c (patch) | |
tree | ef4826d89bbd360db644fe51cd855012f475eee1 /socket.h | |
parent | 87456836e1bd7d1e35a92d55a830e1c1f1f7ccff (diff) | |
download | txr-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 'socket.h')
0 files changed, 0 insertions, 0 deletions