Skip to content

Skip unparsable XML instead of reusing the previous document - #127

Open
marcelxsilva wants to merge 1 commit into
MobSF:mainfrom
marcelxsilva:fix/126-unparsable-xml
Open

marcelxsilva wants to merge 1 commit into
MobSF:mainfrom
marcelxsilva:fix/126-unparsable-xml

Conversation

@marcelxsilva

Copy link
Copy Markdown

When an XML file fails to parse, scan_manifest falls through with the previous file's document, so the unparsable file is reported with the previous manifest's findings and the output depends on file ordering.

The fix skips the file after logging the parse failure. Adds a regression test in tests/unit/test_xml.py with a valid manifest followed by an unparsable fragment.

Fixes #126.

This branch has not been deployed

No deployments
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.

Unparsable XML is reported with the previous file's manifest findings

1 participant