[PR #90] [MERGED] Prevent null pointer deference in get_mac_address #353

Closed
opened 2026-10-15 12:59:58 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/wolf/pull/90
Author: @pablojrl123
Created: 7/31/2024
Status: ✅ Merged
Merged: 7/31/2024
Merged by: @ABeltramo

Base: stable ← Head: getifaddrs-nullptr-fix


📝 Commits (1)

  • a17a260 fix: prevent possible null pointer deference in get_mac_address

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/moonlight-server/platforms/hw_linux.cpp (+2 -2)

📄 Description

Attempting to connect over certain virtual interfaces, like Wireguard/Tailscale/VPN/etc, causes the Wolf host to throw an exception and crash.

This has been solved by ensuring the the fields of the structure returned by getifaddrs are not null.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/wolf/pull/90 **Author:** [@pablojrl123](https://github.com/pablojrl123) **Created:** 7/31/2024 **Status:** ✅ Merged **Merged:** 7/31/2024 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `stable` ← **Head:** `getifaddrs-nullptr-fix` --- ### 📝 Commits (1) - [`a17a260`](https://github.com/games-on-whales/wolf/commit/a17a260d839fc2d37327691ecdca9e59387c74da) fix: prevent possible null pointer deference in get_mac_address ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/moonlight-server/platforms/hw_linux.cpp` (+2 -2) </details> ### 📄 Description Attempting to connect over certain virtual interfaces, like Wireguard/Tailscale/VPN/etc, causes the Wolf host to throw an exception and crash. This has been solved by ensuring the the fields of the structure returned by getifaddrs are not null. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:59:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/wolf#353
No description provided.