google / bloaty

Bloaty: a size profiler for binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AddressSanitizer report out of range when use the bloaty

aglory-ly opened this issue · comments

Verion

dev version,git clone https://github.com/google/bloaty.git

Environment

Ubuntu 18.04,64bit

Command

Compile test program:

$ cmake .
$ make -j6

Compile test program with address sanitizer with this command:

  • Compile program:

    $ export CC=afl-clang
    $ export CXX=afl-clang++
    $ export AFL_USE_ASAN=1
    $ cmake.
    $ make -j6
    

Result

The result of running without ASAN:

$ ./bloaty $poc

terminate called after throwing an instance of 'std::out_of_range'
  what():  absl::string_view::substr
Aborted (core dumped)

Information obtained by using ASAN:

$ ./bloaty_asan $poc

terminate called after throwing an instance of 'std::out_of_range'
  what():  absl::string_view::substr
Aborted (core dumped)

Description

When we execute the command, asan reports the error:
terminate called after throwing an instance of 'std::out_of_range'
  what():  absl::string_view::substr
Aborted (core dumped)

Poc

Poc file is this