mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-28 06:15:21 +00:00
17 lines
307 B
C++
17 lines
307 B
C++
|
#include <string>
|
||
|
#include <sstream>
|
||
|
|
||
|
#include <elfio/elfio.hpp>
|
||
|
using namespace ELFIO;
|
||
|
|
||
|
extern "C" int LLVMFuzzerTestOneInput( const uint8_t* Data, size_t Size )
|
||
|
{
|
||
|
std::string str( (const char*)Data, Size );
|
||
|
std::istringstream ss( str );
|
||
|
|
||
|
elfio elf;
|
||
|
elf.load( ss );
|
||
|
|
||
|
return 0;
|
||
|
}
|