libdl: Update comment with details about the error fix.

See refs #2192.
This commit is contained in:
Chris Johns
2014-11-20 13:52:12 +11:00
parent 2ae58c695f
commit 580466cc9c

View File

@@ -639,6 +639,9 @@ rtems_rtl_elf_parse_sections (rtems_rtl_obj_t* obj, int fd, Elf_Ehdr* ehdr)
{
uint32_t flags;
/*
* Make sure section is at least 32bits to avoid 16-bit overflow errors.
*/
off = obj->ooffset + ehdr->e_shoff + (((uint32_t) section) * ehdr->e_shentsize);
if (!rtems_rtl_obj_cache_read_byval (sects, fd, off, &shdr, sizeof (shdr)))