mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Only append CRC32 to filename when the function name is truncated
This commit is contained in:
@@ -507,6 +507,8 @@ def to_filename(name):
|
||||
|
||||
def to_handler_filename(name):
|
||||
full_filename = to_filename(name)
|
||||
if len(full_filename) <= 41:
|
||||
return full_filename + ".js"
|
||||
crc = binascii.crc32(full_filename.encode())
|
||||
return full_filename[0:32] + "_%08x.js" % crc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user