mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-09-29 00:01:44 +02:00
Patching bug in binaryInit
This commit is contained in:
1 parent
af8e89ab67
commit
75b72b56c5
1 file changed
+1
-1
@@ -97,7 +97,7 @@ class SnakeHatchery:
|
|||||||
''' Initialize the binary object in global scope.'''
|
''' Initialize the binary object in global scope.'''
|
||||||
global binaries # It must be global, becuase after this object is destructed, the snake_instance would point to invalid memory ("binary" is dependant on "binaries").
|
global binaries # It must be global, becuase after this object is destructed, the snake_instance would point to invalid memory ("binary" is dependant on "binaries").
|
||||||
|
|
||||||
if self.file_path_exists:
|
if self.file_path: # We cannot use here self.file_path_exists because at this point the file_path cpuld be set fron None to a valid path by filePathInit() method (when only -b specified)
|
||||||
adhoc_macho_processor = MachOProcessor() # Just for this limited scope
|
adhoc_macho_processor = MachOProcessor() # Just for this limited scope
|
||||||
|
|
||||||
if adhoc_macho_processor.isFileMachO(self.file_path):
|
if adhoc_macho_processor.isFileMachO(self.file_path):
|
||||||
|
|||||||
Reference in new issue
Block a user