New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python bindings report invalid build SDK #533
Comments
Here is a simple temporary workaround for anyone who depends on the actual build SDK version: import lief
import re
from typing import Tuple
def build_version_sdk(binary: lief.MachO.Binary) -> Tuple[int, int, int]:
rx = re.compile(r'SDK: (\d+)\.(\d+)\.(\d+)')
m = rx.search(str(binary.build_version))
return tuple(map(int, m.groups())) |
Thanks! |
Clcanny
pushed a commit
to Clcanny/LIEF
that referenced
this issue
Feb 8, 2021
xhochy
pushed a commit
to xhochy/LIEF
that referenced
this issue
May 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LIEF/api/python/MachO/objects/pyBuildVersion.cpp
Lines 93 to 96 in fd8af3a
The returned property is
BuildVersion::minos
but insteadBuildVersion::sdk
should be returned. This is presumably a copy and paste error.The text was updated successfully, but these errors were encountered: