mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #3142] [MERGED] Core: MapMemory fixes #3257
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3142
Author: @StevenMiller123
Created: 6/21/2025
Status: ✅ Merged
Merged: 6/22/2025
Merged by: @squidbus
Base:
main← Head:memory-kalaposfos📝 Commits (4)
607bd59Validate requested dmem range in MapMemory7119228Specify type0fce4f0Types cleanup0f48ba9Clang📊 Changes
4 files changed (+189 additions, -172 deletions)
View changed files
📝
src/core/libraries/kernel/memory.cpp(+34 -35)📝
src/core/libraries/kernel/memory.h(+29 -30)📝
src/core/memory.cpp(+97 -77)📝
src/core/memory.h(+29 -30)📄 Description
This PR adds proper validation of the physical addresses inputted into MapMemory.
This fixes a bug reported by @kalaposfos13
I've also gone and updated all parameter and function types in our core memory code to use our defined types over int, size_t, and short for code cleanliness.
This PR effectively replaces #3113
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.