Open
Description
Quick summary
Calloc crashes the game on the return (or if you manually add a jump back) in interpreter.
It works as expected on recompiler and doesn't crash.
Tested game in this case was Tales of Graces f [NPUB31133]
You can workaround this issue by using a branch, but this is not ideal.
Here is an example patch file, upon loading into any area, the game should immediately crash.
PPU-b8943beb705272fcbd97057092caf91d2e51989f:
"Calloc crash test 1 (crash on return)":
Games:
"Tales of Graces f":
NPUB31133: [ All ]
Author: ""
Patch Version: 1.0
Group: ""
Notes: ""
Patch:
- [ be32, 0x469EB8, 0x60000000 ]
- [ calloc, 0x469EB8, 1]
- [ be32, 0x0, 0x7C76A92E ] #original game code
"Calloc crash test 2 (no crash)":
Games:
"Tales of Graces f":
NPUB31133: [ All ]
Author: ""
Patch Version: 1.0
Group: ""
Notes: ""
Patch:
- [ be32, 0x469EB8, 0x60000000 ]
- [ calloc, 0x469EB8, 2]
- [ be32, 0x0, 0x7C76A92E ] #original game code
- [ be32, 0x0, 0x4BA79EB8 ] #hack to fix calloc crash in interpreter
Details
No response
Attach a log file
Attach capture files for visual issues
No response
System configuration
No response
Other details
No response