diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 07:02:56 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 07:02:56 -0700 |
commit | 8269da30cff5f376940b4d5798e5167e031dab8b (patch) | |
tree | 31229e084e15dd7cefbdcedecb33e4a9dc64abd5 /stream.c | |
parent | 21386d3b62ea2fd08a9afd376e39d02185f67baf (diff) | |
download | txr-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