pkarashchenko commented on a change in pull request #5951:
URL: https://github.com/apache/incubator-nuttx/pull/5951#discussion_r840537177
##########
File path: libs/libc/modlib/modlib_bind.c
##########
@@ -485,7 +485,7 @@ static int modlib_relocateadd(FAR struct module_s *modp,
/* Calculate the relocation address. */
- if (rela->r_offset < 0 ||
+ if (rela->r_offset ||
rela->r_offset > dstsec->sh_size - sizeof(uint32_t))
Review comment:
```suggestion
rela->r_offset + sizeof(uint32_t) > dstsec->sh_size)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]