Rpcs3: sceNpTrophyRegisterContext tries using null pointer arg

Created on 31 May 2019  ·  3Comments  ·  Source: RPCS3/rpcs3

·W 0:00:18.427504 {PPU[0x1000000] Thread (main_thread) [0x021f4d60]} sys_ppu_thread: _sys_ppu_thread_create(thread_id=*0x200a4638, param=*0xd003fb10, arg=0x200a4630, unk=0x0, prio=3000, stacksize=0x4000, flags=0x1, threadname=“TrophyInfo”) ·W 0:00:18.427877 {PPU[0x1000000] Thread (main_thread) [0x00926180]} sys_semaphore: sys_semaphore_destroy(sem_id=0x9600eb00) ·W 0:00:18.427875 {PPU[0x1000011] Thread (TrophyInfo) [0x021d0118]} sceNpTrophy: sceNpTrophyGetRequiredDiskSpace(context=0x1, handle=0x1, reqspace=*0xd00d9330, options=0x0) ·E 0:00:18.428075 {PPU[0x1000011] Thread (TrophyInfo) [0x021d0100]} sceNpTrophy: sceNpTrophyRegisterContext(context=0x1, handle=0x1, statusCb=*0x1f831c0, arg=*0x0, options=0x0)

arg is not checked for whether it is a nullptr

Game will then try to register a callback using nullptr arg and crash the emulator

Data from our Discord Support Channel:
Game: [BCAS20311] Drakengard 3
Log: https://cdn.discordapp.com/attachments/277227681836302338/584068863092850708/RPCS3.log

Bug HLE Trophies

All 3 comments

Reason for closure? @AniLeo

elad said it's probably not used by the callback so it's fine

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Asinin3 picture Asinin3  ·  3Comments

Luffykun007 picture Luffykun007  ·  3Comments

Nezarn picture Nezarn  ·  3Comments

xiangzhai picture xiangzhai  ·  3Comments

densandwitch picture densandwitch  ·  3Comments