fix theoretical out-of-bound access in dynamic linker