Fix an overflow issue with ArrayInsert[Before|After] (bug 4330, r=joropito)
Former-commit-id: ba56af8a7132de17e42412bd33c1958353711e60
This commit is contained in:
		| @@ -232,7 +232,7 @@ public: | ||||
| 		} | ||||
|  | ||||
| 		// 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);  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user