mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 22:53:08 +00:00
Bug 1432067 - Ignore zero sized tables. r=jrmuizel
This commit is contained in:
parent
1120b5bb3e
commit
b1115c2c28
@ -606,7 +606,7 @@ static struct lutmABType *read_tag_lutmABType(struct mem_source *src, struct tag
|
||||
// 24bits * 3 won't overflow either
|
||||
clut_size = clut_size * num_out_channels;
|
||||
|
||||
if (clut_size > MAX_CLUT_SIZE)
|
||||
if (clut_size == 0 || clut_size > MAX_CLUT_SIZE)
|
||||
return NULL;
|
||||
|
||||
lut = malloc(sizeof(struct lutmABType) + (clut_size) * sizeof(float));
|
||||
|
Loading…
x
Reference in New Issue
Block a user