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

BBA/BuiltIn: Fix a crash during network stack exhaustion #11083

Merged
merged 2 commits into from Sep 24, 2022

Conversation

sepalani
Copy link
Contributor

This PR is an attempt to fix the following crash: https://bugs.dolphin-emu.org/issues/13032

This was the only part of the code I could find where a check was missing that could produce a crash of Dolphin. I'm unsure if it's related to the described issue. Regardless, I managed to exhaust the BBA network stack and crash Dolphin by requesting the UPnP URL with multiple tabs of a web browser.

The PR addresses these issues by:

  • checking the pointer to prevent the nullptr dereference crash
  • skipping UPnP requests to itself which (shouldn't happen on real hardware and) are ignored but used to hold onto a network slot forever due to them being ignored.

Ready to be reviewed & merged.

@AdmiralCurtiss
Copy link
Contributor

While I don't know whether this actually fixes https://bugs.dolphin-emu.org/issues/13032, this looks like a sensible change regardless.

@AdmiralCurtiss AdmiralCurtiss merged commit f106bc1 into dolphin-emu:master Sep 24, 2022
11 checks passed
@sepalani sepalani deleted the bba-check branch September 24, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants