mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add a dummy byte at end of the CFF table to satisfy sanitizer
Fixes #2674.
This commit is contained in:
parent
007a643279
commit
059fd616cd
3 changed files with 14 additions and 0 deletions
|
@ -6581,6 +6581,10 @@ var CFFCompiler = (function CFFCompilerClosure() {
|
|||
|
||||
this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
|
||||
|
||||
// If the font data ends with INDEX whose object data is zero-length,
|
||||
// the sanitizer will bail out. Add a dummy byte to avoid that.
|
||||
output.add([0]);
|
||||
|
||||
return output.data;
|
||||
},
|
||||
encodeNumber: function CFFCompiler_encodeNumber(value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue