From 4a2e43b086ad75449ead00e7db4132f09fa0b8f6 Mon Sep 17 00:00:00 2001 From: Alexandra Sandulescu Date: Wed, 24 Jun 2020 17:25:38 +0200 Subject: [PATCH] Fix pe-parser API issue --- disassembly/pecodesource.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/disassembly/pecodesource.cpp b/disassembly/pecodesource.cpp index f84f6eef5..a6b7d463b 100644 --- a/disassembly/pecodesource.cpp +++ b/disassembly/pecodesource.cpp @@ -59,8 +59,10 @@ PECodeSource::PECodeSource(const std::string& filename) : is_amd64_(false) { } peparse::iterSec section_callback = [](void* N, - peparse::VA section_base, std::string& section_name, - peparse::image_section_header s, peparse::bounded_buffer* data) -> int { + const peparse::VA §ion_base, + const std::string §ion_name, + const peparse::image_section_header &s, + const peparse::bounded_buffer* data) -> int { PECodeSource* pe_code_source = static_cast(N); PECodeRegion* new_region = new PECodeRegion(