Gedzip
Table of Contents
Classes
- Archive
- A GEDZIP archive that was read ({@see \Korin\Gedcom\Gedcom::readGedzip()}): its gedcom.ged as
a document, and its media, read from the archive when asked for, never extracted to disk.
- EntryName
- Names of archive entries that are safe to use: relative paths with "/" between segments,
none of them "." or "..", no backslash, drive letter or control character. Anything else
could write or read outside a directory the archive is extracted to (zip-slip).
- GedzipReader
- Reads a GEDZIP archive (GEDCOM 7.0 section 3.6): gedcom.ged at its root, the media its FILE
references name. The archive is checked before anything is decompressed: the sizes of the
entries against the limits of {@see ReadOptions} (zip bombs), their names (zip-slip). The
size of gedcom.ged is checked again as it is read, as the directory can lie.
- GedzipWriter
- Writes a GEDZIP archive: the document as gedcom.ged, first, and the media under the names
its FILE references use. The archive is written to a temporary file next to the target and
renamed when complete, so a failure leaves no half-written archive.