HexHive / retrowrite

RetroWrite -- Retrofitting compiler passes through binary rewriting
Other
655 stars 78 forks source link

adding check on .init_array section if present #51

Open tin-z opened 2 months ago

tin-z commented 2 months ago

If the .init_array section is missing from the binary, then the exception AttributeError: 'NoneType' object has no attribute 'data' will be invoked at https://github.com/HexHive/retrowrite/blob/master/librw_x64/loader.py#L60