[PR #3923] [MERGED] Lib.Audio3d: sceAudio3dGetDefaultOpenParameters fix #3805

Closed
opened 2026-02-27 22:05:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3923
Author: @StevenMiller123
Created: 1/13/2026
Status: Merged
Merged: 1/13/2026
Merged by: @georgemoralis

Base: mainHead: fix-audio3d


📝 Commits (3)

  • defc80f OrbisAudio3dOpenParameters struct fix
  • 8051251 Bring back filler, only copy 0x20 bytes.
  • e436673 Fix memcpy

📊 Changes

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

View changed files

📝 src/core/libraries/audio3d/audio3d.cpp (+3 -2)

📄 Description

sceAudio3dGetDefaultOpenParameters should only copy 0x20 bytes to the parameter output.
We were originally writing 0x28 bytes, which could corrupt the stack in titles using the function.

This fixes some cases of kernel.cpp:81 stack_chk_fail: Unreachable code! in games using libSceAudio3d.


🔄 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/shadps4-emu/shadPS4/pull/3923 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 1/13/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `fix-audio3d` --- ### 📝 Commits (3) - [`defc80f`](https://github.com/shadps4-emu/shadPS4/commit/defc80f42c9b2e8c08721b11c7ce6b18e95b0295) OrbisAudio3dOpenParameters struct fix - [`8051251`](https://github.com/shadps4-emu/shadPS4/commit/80512516d690cf8263cb757559e0d8d66570c781) Bring back filler, only copy 0x20 bytes. - [`e436673`](https://github.com/shadps4-emu/shadPS4/commit/e43667320d5f921b39b54a8537cd9a71fee0aaa3) Fix memcpy ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/audio3d/audio3d.cpp` (+3 -2) </details> ### 📄 Description sceAudio3dGetDefaultOpenParameters should only copy 0x20 bytes to the parameter output. We were originally writing 0x28 bytes, which could corrupt the stack in titles using the function. This fixes some cases of `kernel.cpp:81 stack_chk_fail: Unreachable code!` in games using libSceAudio3d. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:02 +03: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
starred/shadPS4#3805
No description provided.