4
0
mirror of https://github.com/QuasarApp/LIEF.git synced 2025-05-08 17:59:34 +00:00
This commit is contained in:
Romain Thomas 2018-07-17 14:50:56 +02:00
parent bc4c94ca6c
commit ceee60e1b5

@ -673,6 +673,9 @@ Section& Binary::add_section<false>(const Section& section) {
new_section->offset(last_offset);
new_section->size(section.size());
// Copy original content in the data handler
new_section->content(section.content());
this->header().numberof_sections(this->header().numberof_sections() + 1);
Header& header = this->header();