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