summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-12 07:07:20 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-12 07:07:20 -0700
commite10a23e3d49b9b123c4eeda62d60182c88f8ee6b (patch)
treee91da47c1ec93d9faa88054170812c8f104f664f /ffi.c
parent8269da30cff5f376940b4d5798e5167e031dab8b (diff)
downloadtxr-e10a23e3d49b9b123c4eeda62d60182c88f8ee6b.tar.gz
txr-e10a23e3d49b9b123c4eeda62d60182c88f8ee6b.tar.bz2
txr-e10a23e3d49b9b123c4eeda62d60182c88f8ee6b.zip
streams: add overflow checks.
* stream.c (open_process): Check that manipulations of nargs do not overflow int type. Use chk_xalloc. Allocation is done before pipe so we have no file descriptors to clean up if chk_xalloc throws. (run): In both versions of run, check that manipulations of nargs don't overflow int and use chk_xalloc.
Diffstat (limited to 'ffi.c')
0 files changed, 0 insertions, 0 deletions