static-analysis-engineering / CodeHawk-Binary

CodeHawk Binary Analyzer for malware analysis and general reverse engineering
MIT License
24 stars 10 forks source link

AppAccess doesn't need architechture fields #19

Closed orinatic closed 3 years ago

orinatic commented 3 years ago

If you want to check if it's a specific architecture, just do isinstance(app, X86Access) or whathaveyou.

This has the advantage of telling the type system the type you're looking at -- if you do that, you can do app.x86dictionary without having to assert that it's an X86Access or cast to x86Access or something

sipma commented 3 years ago

Thank you very much for the contribution!