KUNAI-static-analyzer
KUNAI-static-analyzer copied to clipboard
Implement EncodedAnnotation and AnnotationElement classes
In some applications which are compiled with all the Annotation information, it is necessary to implement these classes in order to avoiding a crash in the application, parsing fails because the pointer of the file doesn't advance with the parsing and it contains some missing data so it's necessary to implement both classes and add them to parser.
Here it's necessary to include the code: https://github.com/Fare9/KUNAI-static-analyzer/blob/3b711de554d8e712cf17672d0adb2e303fdae750/src/DEX/parser/dex_encoded.cpp#L52
It's possible to follow Androguard's code: https://github.com/androguard/androguard/blob/8d091cbb309c0c50bf239f805cc1e0931b8dcddc/androguard/core/bytecodes/dvm.py#L1612 https://github.com/androguard/androguard/blob/8d091cbb309c0c50bf239f805cc1e0931b8dcddc/androguard/core/bytecodes/dvm.py#L1764 https://github.com/androguard/androguard/blob/8d091cbb309c0c50bf239f805cc1e0931b8dcddc/androguard/core/bytecodes/dvm.py#L1716