mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: extend the size of plugin m_info array to avoid out-of-bounds
Note: previous fix +1 wasn't enough.
This commit is contained in:
parent
78b73ba585
commit
037bd3109e
|
@ -34,7 +34,8 @@ enum PluginsEnum_t
|
|||
// time. So it's placed afer PluginId_Count so that it doesn't show up in the conf
|
||||
// screens or other plugin tables.
|
||||
|
||||
PluginId_Mcd
|
||||
PluginId_Mcd,
|
||||
PluginId_AllocCount // Extra value for correct array allocation
|
||||
};
|
||||
|
||||
enum GamefixId
|
||||
|
|
|
@ -298,8 +298,7 @@ protected:
|
|||
volatile u32 m_mcdOpen;
|
||||
|
||||
public: // hack until we unsuck plugins...
|
||||
// +1 to avoid out-of-bounds due to PluginId_Mcd which is above PluginId_Count
|
||||
ScopedPtr<PluginStatus_t> m_info[PluginId_Count + 1];
|
||||
ScopedPtr<PluginStatus_t> m_info[PluginId_AllocCount];
|
||||
|
||||
public:
|
||||
SysCorePlugins();
|
||||
|
|
Loading…
Reference in New Issue