Skip to content

Commit

Permalink
Fix Mach-O issue
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jul 27, 2024
1 parent f4bf30d commit 24d48ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/lief/ELF.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ class DynamicEntry(lief.Object):
VERNEEDNUM: ClassVar[DynamicEntry.TAG] = ...
VERSYM: ClassVar[DynamicEntry.TAG] = ...
X86_64_PLT: ClassVar[DynamicEntry.TAG] = ...
X86_64_PLTSZ: ClassVar[DynamicEntry.TAG] = ...
X86_64_PLTENT: ClassVar[DynamicEntry.TAG] = ...
X86_64_PLTSZ: ClassVar[DynamicEntry.TAG] = ...
__name__: str
def __init__(self, *args, **kwargs) -> None: ...
@staticmethod
Expand Down
2 changes: 2 additions & 0 deletions include/LIEF/MachO/LoadCommand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace LIEF {
namespace MachO {
class Builder;
class BinaryParser;
class Binary;

namespace details {
struct load_command;
Expand All @@ -36,6 +37,7 @@ struct load_command;
class LIEF_API LoadCommand : public Object {
friend class Builder;
friend class BinaryParser;
friend class Binary;
public:
using raw_t = std::vector<uint8_t>;

Expand Down
1 change: 1 addition & 0 deletions src/MachO/Binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ bool Binary::extend(const LoadCommand& command, uint64_t size) {
}

cmd->size(size_aligned);
cmd->original_data_.resize(size_aligned);

// Update Header
// =============
Expand Down

0 comments on commit 24d48ad

Please sign in to comment.