Differences From Artifact [321e6d1503]:
- File src/OFZIPArchive.h — part of check-in [7d11e6e4e6] at 2013-11-06 11:36:38 on branch trunk — OFZIPArchive: Add support for ZIP64. (user: js, size: 2502) [annotate] [blame] [check-ins using]
To Artifact [471313a18b]:
- File
src/OFZIPArchive.h
— part of check-in
[be628bbb84]
at
2013-11-06 20:58:10
on branch trunk
— OFZIPArchive: Do not sort -[entries].
While sorting -[entries] reduces hard disk seeks, it allows a denial of
service by creating an archive with a huge central directory without
actual files. As usually the order in the central directory matches the
order of the actual files, this minor speed increase is not worth the
attack vector. (user: js, size: 2461) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
60 61 62 63 64 65 66 | */ - initWithPath: (OFString*)path; /*! * @brief Returns the entries of the central directory of the archive as an * array of objects of class @ref OFZIPArchiveEntry. * | < | | > | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | */ - initWithPath: (OFString*)path; /*! * @brief Returns the entries of the central directory of the archive as an * array of objects of class @ref OFZIPArchiveEntry. * * The objects of the array have the same order as the entries in the central * directory, which does not need to be the order in which the actual files are * stored. * * @return The entries of the central directory of the archive as an array */ - (OFArray*)entries; /*! * @brief Returns the archive comment. |
︙ | ︙ |