diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 06:46:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 06:46:10 -0700 |
commit | ff0366ac3249b1a25813921e1af9346f345fd4a3 (patch) | |
tree | 855facabe2c2fd16954ef5ce5f20f5ee1c7276fe /mpi/mpi.h | |
parent | a09815093b24e0bc8145190bd02110df63afb373 (diff) | |
download | txr-ff0366ac3249b1a25813921e1af9346f345fd4a3.tar.gz txr-ff0366ac3249b1a25813921e1af9346f345fd4a3.tar.bz2 txr-ff0366ac3249b1a25813921e1af9346f345fd4a3.zip |
ffi: fix carray multiplication overflow checks.
* ffi.c (carray_dup): Do size multiplication using unsigned
type, then coerce back to signed. Check for overflow correctly
by first testing result for negative, then doing division check.
(carray_replace): Add check for negative size, which confirms
overflow.
Diffstat (limited to 'mpi/mpi.h')
0 files changed, 0 insertions, 0 deletions