Skip to content

Fix crashes in AsmMethodSource(#1577,#1580)#1579

Closed
FXTi wants to merge 4 commits intosoot-oss:developfrom
FXTi:issue1577
Closed

Fix crashes in AsmMethodSource(#1577,#1580)#1579
FXTi wants to merge 4 commits intosoot-oss:developfrom
FXTi:issue1577

Conversation

@FXTi
Copy link
Copy Markdown

@FXTi FXTi commented Apr 5, 2021

Fix: #1577

  • mergeIn() should resolve the right stack_n := @caughtException when nop for InlineExceptionHandler appears.
  • UnitContainer may appear instead of nop for InlineExceptionHandler.

Fix: #1580

  • Replace Edge.stack with Edge.stacks and keep stacks in the same order as edges in worklist.

@FXTi FXTi changed the title Fix mergeIn() for InlineExceptionHandler Fix crashes in AsmMethodSource(#1577,#1580) Apr 6, 2021
@linghuiluo
Copy link
Copy Markdown
Member

This fix doesn't look so trivial. Can you provide unit tests?

@FXTi
Copy link
Copy Markdown
Author

FXTi commented Apr 27, 2021

No, but I recommend add some unit tests for this pr.

@linghuiluo
Copy link
Copy Markdown
Member

@FXTi Will you add the tests? If you add the tests, I can review this PR.

@anddann anddann self-requested a review June 15, 2021 09:15
@linghuiluo
Copy link
Copy Markdown
Member

@swissiety Can you add the two test cases into soot and see if the bugs are still there? If it is the case, make a pull request with the tests and mark them as ignored at first.

@swissiety swissiety self-assigned this Jun 18, 2021
@FXTi FXTi closed this by deleting the head repository Apr 24, 2023
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.

Multiple un-equal stacks! Crash in retriving body of method

3 participants