mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #13698 from linfangrong/master
[FIX] fix jpx tag tree decode (issue 11957)
This commit is contained in:
commit
da15dbf962
3 changed files with 15 additions and 0 deletions
|
@ -1203,6 +1203,11 @@ function parseTilePackets(context, data, offset, dataLength) {
|
|||
zeroBitPlanesTree = new TagTree(width, height);
|
||||
precinct.inclusionTree = inclusionTree;
|
||||
precinct.zeroBitPlanesTree = zeroBitPlanesTree;
|
||||
for (let l = 0; l < layerNumber; l++) {
|
||||
if (readBits(1) !== 0) {
|
||||
throw new JpxError("Invalid tag tree");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue