mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 20:24:45 +03:00
Two items, not two bytes
This commit is contained in:
parent
e8fa86d630
commit
b5f03c9e74
|
@ -761,7 +761,7 @@ _prepare_lut_table(PyObject *table, Py_ssize_t table_size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* malloc check ok, max is 2 * 4 * 65**3 = 2197000 */
|
/* malloc check ok, max is 2 * 4 * 65**3 = 2197000 */
|
||||||
prepared = (INT16 *)malloc(sizeof(INT16) * table_size + 2);
|
prepared = (INT16 *)malloc(sizeof(INT16) * (table_size + 2));
|
||||||
if (!prepared) {
|
if (!prepared) {
|
||||||
if (free_table_data) {
|
if (free_table_data) {
|
||||||
free(table_data);
|
free(table_data);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user