Commit f2493d53 authored by Albert Astals Cid's avatar Albert Astals Cid

SampledFunction: Fix uninitialized memory read

oss-fuzz/12608
parent a6427ea6
......@@ -276,7 +276,7 @@ SampledFunction::SampledFunction(Object *funcObj, Dict *dict) {
}
idx = (idx + bit) * sampleSize[j-1];
}
if (sampleSize[0] == 1) {
if (m > 0 && sampleSize[0] == 1) {
bit = 0;
} else {
bit = (t >> (m - 1)) & 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment