Skip to content

Commit

Permalink
ELFCrashReport: fix for protocol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Jan 10, 2019
1 parent d3cadd9 commit 50548cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twili/ELFCrashReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ void ELFCrashReport::Generate(process::Process &process, twili::bridge::Response
size_t ph_offset = total_size;
total_size+= sizeof(ELF::Elf64_Phdr) * (1 + vmas.size());

bridge::ResponseWriter r = ro.BeginOk(total_size);
bridge::ResponseWriter r = ro.BeginOk(sizeof(uint64_t) + total_size);
r.Write<uint64_t>(total_size);
r.Write<ELF::Elf64_Ehdr>({
.e_ident = {
.ei_class = ELF::ELFCLASS64,
Expand Down

0 comments on commit 50548cf

Please sign in to comment.