Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: RuntimeException "File format violation in type spec table: res1 is not zero offset" with some apps #750

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

samudoria
Copy link

Hi,

I've been testing some newer apps and have been getting this exception, which does not manifest with older apps
I saw that in the ResourceTypes.h res1 used to be reserved, but now it corresponds to typesCount and can be >0.

This fix was tested locally by me and it doesn't seem to manifest any issues, but I'm not aware of possible repercussions.

Hope this helps,
Samuele

@StevenArzt
Copy link
Member

There should be a flag the defines whether FlowDroid should throw an error or not. It would make more sense to change the default value of this flag.

I know this error. According to the comments in the Android code, it should always be zero. So strictly speaking, another value is wrong. I know that other values are used in apps. Therefore, changing the behavior to "less strict mode" is probably the best way forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants