ELFIO/elfio
Kevin Klues e3e0d6dbdb Fixed off-by-one error in 'name' of add_note() function.
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'.
2016-07-02 11:02:20 -07:00
..
elf_types.hpp The list of machine architectures was updated 2015-04-30 18:16:03 +03:00
elfio_dump.hpp Prevent accessing pdata struct if it doesn't exist. 2016-04-23 16:37:48 +03:00
elfio_dynamic.hpp Refactoring 2016-04-23 17:58:34 +03:00
elfio_header.hpp Copyright year update 2015-02-13 20:51:07 +02:00
elfio_note.hpp Fixed off-by-one error in 'name' of add_note() function. 2016-07-02 11:02:20 -07:00
elfio_relocation.hpp Refactoring 2016-04-23 17:58:34 +03:00
elfio_section.hpp Refactoring 2016-04-23 17:58:34 +03:00
elfio_segment.hpp Refactoring 2016-04-23 17:58:34 +03:00
elfio_strings.hpp Refactoring 2016-04-23 17:58:34 +03:00
elfio_symbols.hpp Copyright year update 2015-02-13 20:51:07 +02:00
elfio_utils.hpp Copyright year update 2015-02-13 20:51:07 +02:00
elfio.hpp Refactoring 2016-04-23 17:58:34 +03:00