THPDFObjectGraphJSONLimits Record

Ogranicza pracę parsera, przechowywane wartości i importowane binarne ładunki, zanim graf obiektów może zostać zcommittowany

Deklaracja

THPDFObjectGraphJSONLimits = record
  MaxJSONBytes: Int64;
  MaxObjectCount: Integer;
  MaxObjectNumber: Integer;
  MaxNestingDepth: Integer;
  MaxStringBytes: Int64;
  MaxStreamBytes: Int64;
  MaxAggregateStreamBytes: Int64;
  class function Default: THPDFObjectGraphJSONLimits; static;
end;

Użycie

Zacznij od THPDFObjectGraphJSONLimits.Default i zredukuj poszczególne sufity, aby dopasować je do zaufanego rozmiaru kanału wymiany

Sufity strukturalne muszą być dodatnie, sufity bajtów strumieni mogą być zerowe, aby odrzucać bajty ładunku, a MaxJSONBytes musi zostawić miejsce na ograniczoną detekcję końca wejścia

Metoda THotPDF.ImportLoadedObjectGraphJSON