alvaro 1a3cb25a7c Fix oob read terminating data with 0
Fix crash e3c41070342cf84dea077356ddbb8ebf4326a601

==12073==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6110000003bb at pc 0x0000004c234c bp 0x7fcf6359ec30 sp 0x7fcf6359e3
e0
READ of size 11 at 0x6110000003bb thread T0
    #0 0x4c234b in __interceptor_strlen.part.30 /home/alvaro/tools/llvm/llvm/projects/compiler-rt/lib/asan/../sanitizer_common/sanitize
r_common_interceptors.inc:301
    #1 0x7165e6579d87 in std::char_traits<char>::length(char const*) /build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3
/include/bits/char_traits.h:269
    #2 0x7165e6579d87 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std
::allocator<char> const&) /build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:495
    #3 0x5c3333 in ELFIO::elfio::load_sections(std::istream&) /home/alvaro/fuzzers/elfio/ELFIO/examples/libfuzzer/../../elfio/elfio.hpp
:413:44
2017-10-04 20:47:51 +03:00
2016-07-10 14:35:16 +03:00
2017-03-06 22:28:46 +02:00
2016-07-10 14:35:16 +03:00
2012-11-27 11:45:28 +02:00
2017-03-06 22:28:46 +02:00
2012-02-18 12:01:36 +02:00
2017-03-06 22:28:46 +02:00
2017-03-06 22:28:46 +02:00
2012-11-27 11:45:28 +02:00
2012-11-27 00:00:27 +02:00
2012-12-05 11:02:34 +02:00
2012-11-27 00:00:27 +02:00
2017-03-06 22:28:46 +02:00
2012-11-27 00:00:27 +02:00
2012-02-18 12:01:36 +02:00
2012-12-05 20:01:31 +02:00

ELFIO is a header-only C++ library intended for reading and generating
files in the ELF binary format. It is used as a standalone library - it is not
dependant on any other product or project. Adhering to ISO C++, it compiles on
a wide variety of architectures and compilers.
Description
ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
Readme 19 MiB
Languages
C++ 98.1%
CMake 1.7%
Assembly 0.1%