File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import pytest
22import time
33import zlib
4- import base64
54import ctypes
65import windows
76
@@ -26,7 +25,7 @@ def pe(request):
2625@pytest .fixture (scope = "session" )
2726def pe_dotnet32 (tmpdir_factory ):
2827 tmpdir = tmpdir_factory .mktemp ("pe_dotnet32_test_dir" )
29- pe_dotnet32_data = zlib .decompress (base64 . decodebytes (PE_DOTNET32_DLL_BASE64 ))
28+ pe_dotnet32_data = zlib .decompress (b64decode (PE_DOTNET32_DLL_BASE64 ))
3029 fullpath = str (tmpdir .join (PE_DOTNET32_DLL_NAME ))
3130 with open (fullpath , "wb" ) as f :
3231 f .write (pe_dotnet32_data )
Original file line number Diff line number Diff line change @@ -554,6 +554,7 @@ class NdrStream(object):
554554 def __init__ (self , data ):
555555 self .fulldata = data
556556 self .data = data
557+ # self.data = memoryview(data) # FAST but need some code rewrite at some places
557558
558559 def partial_unpack (self , format ):
559560 size = struct .calcsize (format )
You can’t perform that action at this time.
0 commit comments