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 | 67ff94abefc891a62f7b190b18a6bcfb1afb3c2d (patch) | |
tree | 31229e084e15dd7cefbdcedecb33e4a9dc64abd5 /mpi/mpi-config.h | |
parent | 5e286b5ad7aaf2b7fdb4b7e39bcd145ffff291e3 (diff) | |
download | txr-67ff94abefc891a62f7b190b18a6bcfb1afb3c2d.tar.gz txr-67ff94abefc891a62f7b190b18a6bcfb1afb3c2d.tar.bz2 txr-67ff94abefc891a62f7b190b18a6bcfb1afb3c2d.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 'mpi/mpi-config.h')
0 files changed, 0 insertions, 0 deletions