]> 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>
Tue, 2 Aug 2016 22:01:47 +0000 (01:01 +0300)
commit4225468e2e7f5c10c0badec2e8281a423fa7fa1d
tree89b83c0bc0bd7fe9a74eb30b9e70eb5ecf7c0543
parent9ea81358992c920be52ba80823f5fe3cda817dec
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