mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 22:55:02 +08:00
Update libs/libc/modlib/modlib_bind.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
co-authored by
Petro Karashchenko
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, "
|
||||
|
||||
Reference in New Issue
Block a user