summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorNicolas Silva <nsilva@mozilla.com>2018-06-15 14:01:07 -0700
committerwolfbeast <mcwerewolf@gmail.com>2018-06-30 18:47:03 +0200
commit5db0b81f7c1c7c18c11fe06e58892ed64e347ef1 (patch)
treee6f45e9ee7dffa3db75dc843bc4911d5aecd2b43 /gfx
parentfdc6f820ca5e4b2832a0208e2a183fb1d6f8b45f (diff)
downloadUXP-5db0b81f7c1c7c18c11fe06e58892ed64e347ef1.tar
UXP-5db0b81f7c1c7c18c11fe06e58892ed64e347ef1.tar.gz
UXP-5db0b81f7c1c7c18c11fe06e58892ed64e347ef1.tar.lz
UXP-5db0b81f7c1c7c18c11fe06e58892ed64e347ef1.tar.xz
UXP-5db0b81f7c1c7c18c11fe06e58892ed64e347ef1.zip
Bug 1464039 - Reject some invalid transforms in qcms. r=mwoodrow, a=RyanVM
Diffstat (limited to 'gfx')
-rw-r--r--gfx/qcms/chain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/qcms/chain.c b/gfx/qcms/chain.c
index e382fbe00..2b0e707c4 100644
--- a/gfx/qcms/chain.c
+++ b/gfx/qcms/chain.c
@@ -972,6 +972,10 @@ static float* qcms_modular_transform_data(struct qcms_modular_transform *transfo
assert(0 && "Unsupported transform module");
return NULL;
}
+ if (transform->grid_size <= 0) {
+ assert(0 && "Invalid transform");
+ return NULL;
+ }
transform->transform_module_fn(transform,src,dest,len);
dest = src;
src = new_src;