[PR #1692] [MERGED] memory: Handle 0 alignment in MemoryManager::Allocate #2249

Closed
opened 2026-02-27 21:15:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1692
Author: @squidbus
Created: 12/8/2024
Status: Merged
Merged: 12/10/2024
Merged by: @raphaelthegreat

Base: mainHead: mem-align


📝 Commits (1)

  • 822a14f memory: Handle 0 alignment in MemoryManager::Allocate

📊 Changes

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

View changed files

📝 src/core/memory.cpp (+3 -3)

📄 Description

Similar to other memory functions, handle alignment of 0x0 to MemoryManager::Allocate with 16KB default, to satisfy memory mapping requirements.

Fixes crash on launch in CUSA28193 (SONIC FRONTIERS). Had some testing done and doesn't appear to be any regressions.


🔄 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/1692 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 12/8/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `mem-align` --- ### 📝 Commits (1) - [`822a14f`](https://github.com/shadps4-emu/shadPS4/commit/822a14f0d0e3e5bf61e648fb64d13bf58895b36d) memory: Handle 0 alignment in MemoryManager::Allocate ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/core/memory.cpp` (+3 -3) </details> ### 📄 Description Similar to other memory functions, handle alignment of 0x0 to `MemoryManager::Allocate` with 16KB default, to satisfy memory mapping requirements. Fixes crash on launch in CUSA28193 (SONIC FRONTIERS). Had some testing done and doesn't appear to be any regressions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:45 +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#2249
No description provided.