Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys_memery fix #5338

Merged
merged 2 commits into from
Nov 16, 2018
Merged

sys_memery fix #5338

merged 2 commits into from
Nov 16, 2018

Conversation

isJuhn
Copy link
Contributor

@isJuhn isJuhn commented Nov 13, 2018

Add null alloc_addr checks to sys_memory_allocate and sys_memory_allocate_from_container.
testcase
Some game was doing this according to ani.

@AniLeo
Copy link
Member

AniLeo commented Nov 14, 2018

Fixes the following issue with Ridge Racer 7 [NPUB30457] (and other games that try to call those functions with nullptr as alloc_addr)

·W 0:07:55.795840 {PPU[0x100004d] Thread (bnusCoreDecoderAT3PThread) [0x00399d00]} sys_memory: sys_memory_allocate(size=0xe0000, flags=0x200, alloc_addr=*0x0)
·F 0:07:55.796045 {PPU[0x100004d] Thread (bnusCoreDecoderAT3PThread) [0x00399d00]} MEM: Access violation writing location 0x0

@AniLeo AniLeo changed the title sys_memery fix [wip] sys_memery fix Nov 14, 2018
@digitaldude555
Copy link

screenshot 1065

@isJuhn isJuhn changed the title [wip] sys_memery fix sys_memery fix Nov 14, 2018
@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is BOM necessary here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project uses BOM for some reason

charset = utf-8-bom

It's stupid, but that's what the project has decided to do.

Copy link
Contributor

@ruipin ruipin Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was decided after multiple contributors had issues where an editor or the compiler didn't auto-detect UTF-8 properly and broke stuff such as log messages, and were painful to fix.

BOM was added since it doesn't really hurt anybody (other than the diffs being annoying for a while) and ensures this never happens again no matter what fancy editor or compiler people decide to use.

@AniLeo AniLeo merged commit 225310e into RPCS3:master Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants