[rtems commit] libdl: Fix size bug in loading symbols.
Chris Johns
chrisj at rtems.org
Tue May 14 00:19:50 UTC 2019
Module: rtems
Branch: master
Commit: d0f627d89478c9d117aa677d3eafd5bd44754ca8
Changeset: http://git.rtems.org/rtems/commit/?id=d0f627d89478c9d117aa677d3eafd5bd44754ca8
Author: Chris Johns <chrisj at rtems.org>
Date: Tue May 14 10:15:51 2019 +1000
libdl: Fix size bug in loading symbols.
This was introduced in 74883be5d4b5fa166179d6003032f6eac2e0f544.
Updates #3746
---
cpukit/libdl/rtl-elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libdl/rtl-elf.c b/cpukit/libdl/rtl-elf.c
index 3b44f8c..0389408 100644
--- a/cpukit/libdl/rtl-elf.c
+++ b/cpukit/libdl/rtl-elf.c
@@ -1092,7 +1092,7 @@ rtems_rtl_elf_symbols_load (rtems_rtl_obj* obj,
{
osym = gsym;
string = gstring;
- gstring += slen + 1;
+ gstring += slen;
++gsym;
}
}
@@ -1105,7 +1105,7 @@ rtems_rtl_elf_symbols_load (rtems_rtl_obj* obj,
{
osym = lsym;
string = lstring;
- lstring += slen + 1;
+ lstring += slen;
++lsym;
}
}
More information about the vc
mailing list