Update libs/libc/modlib/modlib_bind.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
c7badac601
commit
5b214888aa
@ -486,7 +486,7 @@ static int modlib_relocateadd(FAR struct module_s *modp,
|
||||
/* Calculate the relocation address. */
|
||||
|
||||
if (rela->r_offset ||
|
||||
rela->r_offset > dstsec->sh_size - sizeof(uint32_t))
|
||||
rela->r_offset + sizeof(uint32_t) > dstsec->sh_size)
|
||||
{
|
||||
berr("ERROR: Section %d reloc %d: "
|
||||
"Relocation address out of range, "
|
||||
|
Loading…
Reference in New Issue
Block a user