View Issue Details

IDProjectCategoryView StatusLast Update
0033270FPCFCLpublic2018-02-28 11:13
ReporterLagunov AlekseyAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct BuildRevision: 38370 
Target Version3.2.0Fixed in Version3.1.1 
Summary0033270: patch for fix AV on create PDF with subset fonts
Descriptionpatch for fix AV on create PDF with subset fonts
TagsNo tags attached.
Fixed in Revision38374
FPCOldBugId
FPCTarget
Attached Files
  • fpttfsubsetter.pp.diff (649 bytes)
    Index: packages/fcl-pdf/src/fpttfsubsetter.pp
    ===================================================================
    --- packages/fcl-pdf/src/fpttfsubsetter.pp	(revision 38370)
    +++ packages/fcl-pdf/src/fpttfsubsetter.pp	(working copy)
    @@ -828,9 +828,9 @@
       itm: TTextMapping;
     begin
       Result := TMemoryStream.Create;
    -  SetLength(startCode, FGlyphIDList.Count);
    -  SetLength(endCode, FGlyphIDList.Count);
    -  SetLength(idDelta, FGlyphIDList.Count);
    +  SetLength(startCode, FGlyphIDList.Count + 1);
    +  SetLength(endCode, FGlyphIDList.Count + 1);
    +  SetLength(idDelta, FGlyphIDList.Count + 1);
     
       // cmap header
       WriteUInt16(Result, 0);  // version
    

Activities

Lagunov Aleksey

2018-02-28 09:46

reporter  

fpttfsubsetter.pp.diff (649 bytes)
Index: packages/fcl-pdf/src/fpttfsubsetter.pp
===================================================================
--- packages/fcl-pdf/src/fpttfsubsetter.pp	(revision 38370)
+++ packages/fcl-pdf/src/fpttfsubsetter.pp	(working copy)
@@ -828,9 +828,9 @@
   itm: TTextMapping;
 begin
   Result := TMemoryStream.Create;
-  SetLength(startCode, FGlyphIDList.Count);
-  SetLength(endCode, FGlyphIDList.Count);
-  SetLength(idDelta, FGlyphIDList.Count);
+  SetLength(startCode, FGlyphIDList.Count + 1);
+  SetLength(endCode, FGlyphIDList.Count + 1);
+  SetLength(idDelta, FGlyphIDList.Count + 1);
 
   // cmap header
   WriteUInt16(Result, 0);  // version

Michael Van Canneyt

2018-02-28 10:23

administrator   ~0106729

Checked and Applied, thank you very much!

Issue History

Date Modified Username Field Change
2018-02-28 09:46 Lagunov Aleksey New Issue
2018-02-28 09:46 Lagunov Aleksey File Added: fpttfsubsetter.pp.diff
2018-02-28 10:23 Michael Van Canneyt Fixed in Revision => 38374
2018-02-28 10:23 Michael Van Canneyt Note Added: 0106729
2018-02-28 10:23 Michael Van Canneyt Status new => resolved
2018-02-28 10:23 Michael Van Canneyt Fixed in Version => 3.1.1
2018-02-28 10:23 Michael Van Canneyt Resolution open => fixed
2018-02-28 10:23 Michael Van Canneyt Assigned To => Michael Van Canneyt
2018-02-28 10:23 Michael Van Canneyt Target Version => 3.2.0
2018-02-28 11:13 Lagunov Aleksey Status resolved => closed