lief 0.16.5__cp38-cp38-macosx_11_0_arm64.whl → 0.17.0__cp38-cp38-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/ART/__init__.pyi +19 -18
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +165 -159
- lief/ELF/__init__.pyi +2807 -2348
- lief/MachO/__init__.pyi +1877 -1457
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2633 -2021
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.py +1 -1
- lief/__init__.pyi +280 -249
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +11015 -8889
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +4521 -4491
- lief/assembly/ebpf/__init__.pyi +535 -481
- lief/assembly/mips/__init__.pyi +2926 -2888
- lief/assembly/powerpc/__init__.pyi +2958 -2846
- lief/assembly/riscv/__init__.pyi +14788 -13826
- lief/assembly/x86/__init__.pyi +24970 -19926
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +31 -25
- lief/dwarf/__init__.pyi +160 -146
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +3 -3
- lief/dwarf/types/__init__.pyi +49 -49
- lief/logging/__init__.pyi +12 -12
- lief/objc/__init__.pyi +26 -26
- lief/pdb/__init__.pyi +272 -38
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from typing import Iterator, Optional, Union
|
|
2
|
+
|
|
3
|
+
import lief.PE
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UnpackedFunction(lief.PE.RuntimeFunctionAArch64):
|
|
7
|
+
class epilog_scope_t:
|
|
8
|
+
start_offset: int
|
|
9
|
+
|
|
10
|
+
start_index: int
|
|
11
|
+
|
|
12
|
+
reserved: int
|
|
13
|
+
|
|
14
|
+
class it_epilog_scopes:
|
|
15
|
+
def __getitem__(self, arg: int, /) -> UnpackedFunction.epilog_scope_t: ...
|
|
16
|
+
|
|
17
|
+
def __len__(self) -> int: ...
|
|
18
|
+
|
|
19
|
+
def __iter__(self) -> UnpackedFunction.it_epilog_scopes: ...
|
|
20
|
+
|
|
21
|
+
def __next__(self) -> UnpackedFunction.epilog_scope_t: ...
|
|
22
|
+
|
|
23
|
+
xdata_rva: int
|
|
24
|
+
|
|
25
|
+
version: int
|
|
26
|
+
|
|
27
|
+
X: int
|
|
28
|
+
|
|
29
|
+
E: int
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def epilog_count(self) -> int: ...
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def epilog_offset(self) -> int: ...
|
|
36
|
+
|
|
37
|
+
code_words: int
|
|
38
|
+
|
|
39
|
+
exception_handler: int
|
|
40
|
+
|
|
41
|
+
unwind_code: memoryview
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def epilog_scopes(self) -> UnpackedFunction.it_epilog_scopes: ...
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def is_extended(self) -> bool: ...
|
|
48
|
+
|
|
49
|
+
class PackedFunction(lief.PE.RuntimeFunctionAArch64):
|
|
50
|
+
frame_size: int
|
|
51
|
+
|
|
52
|
+
reg_I: int
|
|
53
|
+
|
|
54
|
+
reg_F: int
|
|
55
|
+
|
|
56
|
+
H: int
|
|
57
|
+
|
|
58
|
+
CR: int
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from typing import Iterator, Optional, Union
|
|
2
|
+
|
|
3
|
+
import lief.PE
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Code:
|
|
7
|
+
@property
|
|
8
|
+
def opcode(self) -> lief.PE.RuntimeFunctionX64.UNWIND_OPCODES: ...
|
|
9
|
+
|
|
10
|
+
@property
|
|
11
|
+
def position(self) -> int: ...
|
|
12
|
+
|
|
13
|
+
def __str__(self) -> str: ...
|
|
14
|
+
|
|
15
|
+
class Alloc(Code):
|
|
16
|
+
@property
|
|
17
|
+
def size(self) -> int: ...
|
|
18
|
+
|
|
19
|
+
class PushNonVol(Code):
|
|
20
|
+
@property
|
|
21
|
+
def reg(self) -> lief.PE.RuntimeFunctionX64.UNWIND_REG: ...
|
|
22
|
+
|
|
23
|
+
class PushMachFrame(Code):
|
|
24
|
+
@property
|
|
25
|
+
def value(self) -> int: ...
|
|
26
|
+
|
|
27
|
+
class SetFPReg(Code):
|
|
28
|
+
@property
|
|
29
|
+
def reg(self) -> lief.PE.RuntimeFunctionX64.UNWIND_REG: ...
|
|
30
|
+
|
|
31
|
+
class SaveNonVolatile(Code):
|
|
32
|
+
@property
|
|
33
|
+
def reg(self) -> lief.PE.RuntimeFunctionX64.UNWIND_REG: ...
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def offset(self) -> int: ...
|
|
37
|
+
|
|
38
|
+
class SaveXMM128(Code):
|
|
39
|
+
@property
|
|
40
|
+
def num(self) -> int: ...
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def offset(self) -> int: ...
|
|
44
|
+
|
|
45
|
+
class Epilog(Code):
|
|
46
|
+
@property
|
|
47
|
+
def flags(self) -> int: ...
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def size(self) -> int: ...
|
|
51
|
+
|
|
52
|
+
class Spare(Code):
|
|
53
|
+
pass
|
lief/VDEX/__init__.pyi
CHANGED
|
@@ -4,8 +4,16 @@ import os
|
|
|
4
4
|
from typing import Iterator, Optional, Union, overload
|
|
5
5
|
|
|
6
6
|
import lief
|
|
7
|
+
import lief.Android
|
|
8
|
+
import lief.OAT
|
|
7
9
|
|
|
8
10
|
|
|
11
|
+
@overload
|
|
12
|
+
def parse(filename: str) -> Optional[File]: ...
|
|
13
|
+
|
|
14
|
+
@overload
|
|
15
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], name: str = '') -> Optional[File]: ...
|
|
16
|
+
|
|
9
17
|
class File(lief.Object):
|
|
10
18
|
@property
|
|
11
19
|
def header(self) -> Header: ...
|
|
@@ -39,16 +47,10 @@ class Header(lief.Object):
|
|
|
39
47
|
|
|
40
48
|
def __str__(self) -> str: ...
|
|
41
49
|
|
|
42
|
-
def android_version(vdex_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
|
43
|
-
|
|
44
|
-
@overload
|
|
45
|
-
def parse(filename: str) -> Optional[File]: ...
|
|
46
|
-
|
|
47
|
-
@overload
|
|
48
|
-
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
49
|
-
|
|
50
50
|
@overload
|
|
51
51
|
def version(file: str) -> int: ...
|
|
52
52
|
|
|
53
53
|
@overload
|
|
54
54
|
def version(raw: Sequence[int]) -> int: ...
|
|
55
|
+
|
|
56
|
+
def android_version(vdex_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
lief/__init__.py
CHANGED
|
@@ -7,7 +7,7 @@ if len(__path__) > 0 and __path__[0] not in sys.path:
|
|
|
7
7
|
from ._lief import __version__, __tag__, __commit__, __is_tagged__, __extended__
|
|
8
8
|
|
|
9
9
|
if __extended__:
|
|
10
|
-
from .
|
|
10
|
+
from ._lief_extended import __LIEF_MAIN_COMMIT__, __LIEF_EXTENDED_VERSION_STR__, __extended_version__
|
|
11
11
|
|
|
12
12
|
# cf. https://github.com/pytorch/pytorch/blob/60a3b7425dde97fe8b46183c154a9c3b24f0c733/torch/__init__.py#L467-L470
|
|
13
13
|
for attr in dir(_lief):
|