bongtrop / hbctool

Hermes Bytecode Reverse Engineering Tool (Assemble/Disassemble Hermes Bytecode)
MIT License
444 stars 71 forks source link

AssertionError: Overflowed string length is not supported yet. #10

Closed longldktmm closed 1 year ago

longldktmm commented 3 years ago

When I " hbctool asm edited index.android.bundle" hbc.setString(string["id"], string["value"]) \appdata\local\programs\python\python39-32\lib\site-packages\hbctool\hbc\hbc59__init__.py", line 142, in setString assert l <= length, "Overflowed string length is not supported yet." AssertionError: Overflowed string length is not supported yet. I'm using Python 3.9.6, what should I fix?

g3ncl commented 3 years ago

i have the same problem

longldktmm commented 3 years ago

I think because new String is longer than old String. if shotter, will padding

Vào 17:59, T.3, 21 Th9, 2021 Claudio Genovese @.***> đã viết:

i have the same problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bongtrop/hbctool/issues/10#issuecomment-923869689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMNMQJRAOVNGAZG7KWAOCTUDBQQBANCNFSM5EC65OWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bongtrop commented 1 year ago

It is hard to construct new file structure if we have to put longer string in the Hermes. All afterward pointer will be changed.