From 50548cfbc95a02e8861718da5ce9157de3913ac2 Mon Sep 17 00:00:00 2001 From: misson20000 Date: Thu, 10 Jan 2019 01:01:55 -0800 Subject: [PATCH] ELFCrashReport: fix for protocol changes --- twili/ELFCrashReport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twili/ELFCrashReport.cpp b/twili/ELFCrashReport.cpp index f9cd5f9..82a5251 100644 --- a/twili/ELFCrashReport.cpp +++ b/twili/ELFCrashReport.cpp @@ -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(total_size); r.Write({ .e_ident = { .ei_class = ELF::ELFCLASS64,