lief 0.16.5__cp312-cp312-musllinux_1_2_aarch64.whl → 0.17.0__cp312-cp312-musllinux_1_2_aarch64.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.

@@ -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 ._lief import __LIEF_MAIN_COMMIT__, __LIEF_EXTENDED_VERSION_STR__, __extended_version__
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):