diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-11-15 15:25:54 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-11-15 15:42:56 +0300 |
commit | e22aaf50d0111ad5481081050d58a39e84e7ed87 (patch) | |
tree | 08619720e0ff84636111d1d4678ab822b870e321 /mach_dep.c | |
parent | 808af929bf55cd2b31e354f1903e182b151e8668 (diff) | |
download | bdwgc-e22aaf50d0111ad5481081050d58a39e84e7ed87.tar.gz |
Fix potential integer overflow in GC_find_limit_* functions
* os_dep.c [OPENBSD] (GC_find_limit_openbsd, GC_skip_hole_openbsd): Add
assertion for the minimum value of bound; increment result by pgsz only
if no overflow is guaranteed.
* os_dep.c [USE_PROC_FOR_LIBRARIES && THREADS || NEED_FIND_LIMIT]
(GC_find_limit_with_bound): Add assertion for the minimum/maximum value
of bound; increment/decrement result by MIN_PAGE_SIZE only if no
overflow/underflow is guaranteed.
Diffstat (limited to 'mach_dep.c')
0 files changed, 0 insertions, 0 deletions