diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-08 05:45:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-08 05:45:27 -0700 |
commit | 9b9e5b00496e92b3240ac6be9d112c29824dc556 (patch) | |
tree | 0daeb2f068f40f2f9375253aff1f084faf65274f /mpi/mpi.h | |
parent | 8534d4641187f4f730ca63c707b3b433fae75a04 (diff) | |
download | txr-9b9e5b00496e92b3240ac6be9d112c29824dc556.tar.gz txr-9b9e5b00496e92b3240ac6be9d112c29824dc556.tar.bz2 txr-9b9e5b00496e92b3240ac6be9d112c29824dc556.zip |
Fix leaks in use of MPI and within MPI.
* arith.c (logand, logior, logxor): Use make_ubignum
to create an uninitialized bignum, because mp_and, mp_or, and
mp_xor expect argument c to be uninitialized, and clobber
it by initializing.
(comp_trunc): Use make_ubignum for b argument,
because mp_trunk_comp initializes it.
(lognot, logtrunc): Use make_ubignum for b, because
mp_trunc initializes it.
* mpi/mpi.c (mp_and, mp_or, mp_xor, mp_comp, mp_trunc_comp,
mp_trunc, mp_shift, mp_bit): Do not initialize the tmp that is
passed as argument b to mp_2comp, since that function
initializes it.
Diffstat (limited to 'mpi/mpi.h')
0 files changed, 0 insertions, 0 deletions