diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 07:12:09 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 07:12:09 -0700 |
commit | b99df52f66223dcfb5c935bf6ccbe2667cf36e08 (patch) | |
tree | fb5ee184ac6b6b0ec3b5441f858b2d04c4c2b82b /mpi/mpi.c | |
parent | e10a23e3d49b9b123c4eeda62d60182c88f8ee6b (diff) | |
download | txr-b99df52f66223dcfb5c935bf6ccbe2667cf36e08.tar.gz txr-b99df52f66223dcfb5c935bf6ccbe2667cf36e08.tar.bz2 txr-b99df52f66223dcfb5c935bf6ccbe2667cf36e08.zip |
ffi: overflow checks in type system.
* ffi.c (make_ffi_type_struct): Use chk_xalloc instead of
chk_malloc.
(make_ffi_type_array): Use chk_xalloc. Since there are
multiple callers, take a self argument to pass down to
chk_xalloc.
(ffi_type_compile): Pass self down to make_ffi_type_array.
(ffi_make_call_desc): Use chk_xalloc.
(carray_ensure_artype): Take a self argument and pass down to
make_ffi_type_array.
(carray_get_common, carray_put_common): Pass self down to
carray_ensure_artype.
Diffstat (limited to 'mpi/mpi.c')
0 files changed, 0 insertions, 0 deletions