diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-06 23:54:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-06 23:54:16 -0700 |
commit | c7bc467dbbde7ab531f1bd6b0593fe26bfe85991 (patch) | |
tree | ae3fa39e8b02272f665baf09a58df07650c7327b /struct.c | |
parent | aa871cb12b356239f624cc23eb409f4c4db0ec2c (diff) | |
download | txr-c7bc467dbbde7ab531f1bd6b0593fe26bfe85991.tar.gz txr-c7bc467dbbde7ab531f1bd6b0593fe26bfe85991.tar.bz2 txr-c7bc467dbbde7ab531f1bd6b0593fe26bfe85991.zip |
ffi: bugfixes: out pointer must be checked.
* ffi.c (ffi_closure_dispatch): Only call out on those
arguments which have a non-null out pointer, otherwise we will
crash. Those non-null values are the reason we even execute
that loop at all.
(ffi_out): Do a put for basic types (which have no out
handler).
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions