fix: support large payload (payload len)

This commit is contained in:
Dobin
2024-02-18 19:42:28 +00:00
parent 64c03d86a8
commit 92e9b51409
4 changed files with 12 additions and 1 deletions
+5
View File
@@ -19,6 +19,11 @@ def r2_disas(data: bytes):
f.write(data)
code_len = len(data)
if code_len > 0x2000:
ret['text'] = "Code too long for r2: {}".format(code_len)
ret['color'] = "Code too long for r2: {}".format(code_len)
return ret
r2 = r2pipe.open(filename, flags=['-2'])
r2.cmd('aaa')