third_party/libunwindstack/tests/fuzz/UnwinderComponentCreator.cpp
void WriteDescriptor32(MemoryFake* memory, uint64_t addr, uint32_t entry) {
  // Format of the 32 bit JITDescriptor structure:
  //   uint32_t version
  memory->SetData32(addr, 1);
  //   uint32_t action_flag
  memory->SetData32(addr + 4, 0);
  //   uint32_t relevant_entry
  memory->SetData32(addr + 8, 0);
  //   uint32_t first_entry
  memory->SetData32(addr + 12, entry);
}
// This code (until PutElfFilesInMemory) is pretty much directly copied from JitDebugTest.cpp
// There's a few minor modifications, most notably, all methods accept a MemoryFake pointer, and
// PutElfInMemory inserts JIT data when called.
This code (until PutElfFilesInMemory) is pretty much directly copied from JitDebugTest.cpp
There's a few minor modifications, most notably, all methods accept a MemoryFake pointer, and
PutElfInMemory inserts JIT data when called.
This code ( until PutElfFilesInMemory ) is pretty much directly copied from JitDebugTest . cpp There ' s a few minor modifications most notably all methods accept a MemoryFake pointer and PutElfInMemory inserts JIT data when called .
void WriteDescriptor32(MemoryFake* memory, uint64_t addr, uint32_t entry) {
  memory->SetData32(addr, 1);
  memory->SetData32(addr + 4, 0);
  memory->SetData32(addr + 8, 0);
  memory->SetData32(addr + 12, entry);
}
void WriteDescriptor32 ( MemoryFake * memory , uint64_t addr , uint32_t entry ) { memory -> SetData32 ( addr , 1 ) ; memory -> SetData32 ( addr + 4 , 0 ) ; memory -> SetData32 ( addr + 8 , 0 ) ; memory -> SetData32 ( addr + 12 , entry ) ; }
This code (until PutElfFilesInMemory) is pretty much directly copied from JitDebugTest.cpp
There's a few minor modifications, most notably, all methods accept a MemoryFake pointer, and
PutElfInMemory inserts JIT data when called.
This code ( until PutElfFilesInMemory ) is pretty much directly copied from JitDebugTest . cpp There ' s a few minor modifications most notably all methods accept a MemoryFake pointer and PutElfInMemory inserts JIT data when called .
// Format of the 32 bit JITDescriptor structure: //   uint32_t version //   uint32_t action_flag //   uint32_t relevant_entry //   uint32_t first_entry