HomeFreeBSD

elfcopy: Handle multiple data descriptors properly.

Description

elfcopy: Handle multiple data descriptors properly.

The code clearly meant to resize the buffer in the case where a section
was backed by multiple data descriptors.

In practice this shouldn't have been a problem since libelf would return
a single data descriptor for each section in a newly opened file.

CID: 1262522
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS357536: libelftc: Add a missing check for an error from vector_str_init().
Branches
Unknown
Tags
Unknown