summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-12 07:02:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-12 07:02:56 -0700
commit8269da30cff5f376940b4d5798e5167e031dab8b (patch)
tree31229e084e15dd7cefbdcedecb33e4a9dc64abd5 /stream.c
parent21386d3b62ea2fd08a9afd376e39d02185f67baf (diff)
downloadtxr-8269da30cff5f376940b4d5798e5167e031dab8b.tar.gz
txr-8269da30cff5f376940b4d5798e5167e031dab8b.tar.bz2
txr-8269da30cff5f376940b4d5798e5167e031dab8b.zip
sysif: add overflow checks.
* sysif.c (excec_wrap): Check that our nargs manipulation doesn't exceed INT_MAX. Use chk_xalloc to allocate the argument vector, providing an overflow check. Use self variable in place function name embedded in literal. (getgroups_wrap): Use chk_xalloc instead of chk_malloc, so multiplication overflow is checked. Use self variable in place function name embedded in literal. (setgroups_wrap): Revamp existing overflow check. Use ucnum for the size, check that it can convert to size_t and back without loss of value, and use chk_xalloc instead of chk_malloc.
Diffstat (limited to 'stream.c')
0 files changed, 0 insertions, 0 deletions