mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a bounds check for interrupts.
This commit is contained in:
parent
81f1383beb
commit
1f2480fff3
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,8 @@ SubIntrHandler *__RegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32
|
|||
|
||||
int __ReleaseSubIntrHandler(int intrNumber, int subIntrNumber)
|
||||
{
|
||||
if (intrNumber >= PSP_NUMBER_INTERRUPTS)
|
||||
return -1;
|
||||
if (!intrHandlers[intrNumber]->has(subIntrNumber))
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue