mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fix an overflow issue with ArrayInsert[Before|After] (bug 4330, r=joropito)
This commit is contained in:
parent
cf7b8645fa
commit
ba56af8a71
@ -232,7 +232,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Allocate a temporary buffer to store data in
|
// Allocate a temporary buffer to store data in
|
||||||
size_t tempbuffsize=(sizeof(cell) * cellcount) * (this->count - which);
|
size_t tempbuffsize=(sizeof(cell) * cellcount) * (this->count - 1 - which);
|
||||||
|
|
||||||
cell* temp=(cell*)malloc(tempbuffsize);
|
cell* temp=(cell*)malloc(tempbuffsize);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user