]> granicus.if.org Git - gc/commit
Handle load_segs overflow in register_dynlib_callback gracefully
authorKjetil Matheussen <k.s.matheussen@notam02.no>
Sat, 16 Jul 2016 12:43:32 +0000 (14:43 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Jul 2016 18:18:21 +0000 (21:18 +0300)
commit017bd0a6bbe6d3c5d404c265bf4700ec7abffa20
tree464df6fa724fc7ae63ca8388c80b08b7f434d8a4
parent346705b4db9ff79b4aeae687b304d5bb64c3a59a
Handle load_segs overflow in register_dynlib_callback gracefully

* dyn_load.c [HAVE_DL_ITERATE_PHDR and PT_GNU_RELRO]
(GC_register_dynlib_callback): If n_load_segs reaches MAX_LOAD_SEGS
then call WARN (with the appropriate message) and call
GC_add_roots_inner to register the segment directly instead of ABORT.
dyn_load.c