[PR #12] [MERGED] hid_open_path: Don't pass invalid pointers to HidD_FreePreparsedData #11

Closed
opened 2026-02-15 15:54:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/hidapi/pull/12
Author: @Megamouse
Created: 1/26/2022
Status: Merged
Merged: 1/26/2022
Merged by: @Megamouse

Base: masterHead: hid_open_path_hotfix


📝 Commits (1)

  • cb09e39 hid_open_path: Don't pass invalid pointers to HidD_FreePreparsedData

📊 Changes

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

View changed files

📝 windows/hid.c (+4 -1)

📄 Description

Fixes a segfault that happens when hid_open_path is called on a previously disconnected device.
This is a regression caused by:
b600727 - Win32: Fix memory leak in free_hid_device (#361)


🔄 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/RPCS3/hidapi/pull/12 **Author:** [@Megamouse](https://github.com/Megamouse) **Created:** 1/26/2022 **Status:** ✅ Merged **Merged:** 1/26/2022 **Merged by:** [@Megamouse](https://github.com/Megamouse) **Base:** `master` ← **Head:** `hid_open_path_hotfix` --- ### 📝 Commits (1) - [`cb09e39`](https://github.com/RPCS3/hidapi/commit/cb09e397840e84be77b5246ef69f374caf36b533) hid_open_path: Don't pass invalid pointers to HidD_FreePreparsedData ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `windows/hid.c` (+4 -1) </details> ### 📄 Description Fixes a segfault that happens when hid_open_path is called on a previously disconnected device. This is a regression caused by: b600727 - Win32: Fix memory leak in `free_hid_device` (#361) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 15:54:31 -05:00
yindo closed this issue 2026-02-15 15:54:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/hidapi#11