konrad-kruczynski / elfsharp

Pure managed C# library for reading ELF, UImage, Mach-O binaries.
https://elfsharp.it
Other
150 stars 56 forks source link

MachO: Fix a typo in x64 BE magic number #96

Closed RoadTrain closed 8 months ago

RoadTrain commented 8 months ago

For x64 Big Endian architectures 0xcffaedfe is a magic number, according to the official Apple Mach-O loader.

See https://opensource.apple.com/source/xnu/xnu-2050.18.24/EXTERNAL_HEADERS/mach-o/loader.h

konrad-kruczynski commented 8 months ago

Thanks for the patch, I'll make a release soon.

konrad-kruczynski commented 8 months ago

ELFSharp 2.17.3 released with your fix applied.