mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-29 09:16:47 +00:00
e3e0d6dbdb
Previously, when assigning 'name' as a string, it's length was specified using the full length of 'namesz'. However, this length includes the trailing '\0' of the underlying char[]. This ultimately causes the C++ string that is created to (incorrectly) contain the '\0' character as well. This leads to problems where e.g. the following will return false, even when 'name' itself actually contains the string "GNU\0": if (name == "GNU") { return true; } return false; To fix this, we should only include the length of the string minus the trailing '\0'. |
||
---|---|---|
.. | ||
elf_types.hpp | ||
elfio_dump.hpp | ||
elfio_dynamic.hpp | ||
elfio_header.hpp | ||
elfio_note.hpp | ||
elfio_relocation.hpp | ||
elfio_section.hpp | ||
elfio_segment.hpp | ||
elfio_strings.hpp | ||
elfio_symbols.hpp | ||
elfio_utils.hpp | ||
elfio.hpp |