Overview
Comment: | OFZIPArchive(Entry): Remove ZIP64 from extra field
Treating the ZIP64 extra field as part of the entry itself makes things |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8ebf6ed4436f2dff9eeec2345a848835 |
User & Date: | js on 2017-08-13 22:34:33 |
Other Links: | manifest | tags |
Context
2017-08-13
| ||
22:38 | Fix -[OFData description] check-in: 484c7987d2 user: js tags: trunk | |
22:34 | OFZIPArchive(Entry): Remove ZIP64 from extra field check-in: 8ebf6ed443 user: js tags: trunk | |
13:50 | OFArray: Fix MessagePack encoding check-in: ada612eac9 user: js tags: trunk | |
Changes
Modified src/OFZIPArchive.m from [7073d8b5b3] to [c1fa8a1f8d].
︙ | |||
607 608 609 610 611 612 613 614 615 | 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 | + + - + | @implementation OFZIPArchive_LocalFileHeader - initWithStream: (OFStream *)stream { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); OFMutableData *extraField = nil; uint16_t fileNameLength, extraFieldLength; of_string_encoding_t encoding; |
︙ | |||
631 632 633 634 635 636 637 | 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 | - - + + + - + - + + + + - + + + + + + + + + | extraFieldLength = [stream readLittleEndianInt16]; encoding = (_generalPurposeBitFlag & (1 << 11) ? OF_STRING_ENCODING_UTF_8 : OF_STRING_ENCODING_CODEPAGE_437); _fileName = [[stream readStringWithLength: fileNameLength encoding: encoding] copy]; |
︙ |
Modified src/OFZIPArchiveEntry.h from [3a97414732] to [ce0ccead6f].
︙ | |||
224 225 226 227 228 229 230 | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | - - + + - - + + | /*! * @brief Gets a pointer to and the size of the extensible data field with the * specified tag. * * @param extraField The extra field to search for an extensible data field with * the specified tag * @param tag The tag to look for |
Modified src/OFZIPArchiveEntry.m from [728d6fb127] to [1983c233dd].
︙ | |||
106 107 108 109 110 111 112 | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | - + - + - - + - + | (version & 0xFF) / 10, (version & 0xFF) % 10, attrCompat]; else return [OFString stringWithFormat: @"%u.%u, unknown %02X", (version % 0xFF) / 10, (version & 0xFF) % 10, version >> 8]; } |
︙ | |||
176 177 178 179 180 181 182 183 184 | 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | + - + | - (instancetype)of_initWithStream: (OFStream *)stream { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); OFMutableData *extraField = nil; uint16_t fileNameLength, extraFieldLength, fileCommentLength; of_string_encoding_t encoding; |
︙ | |||
208 209 210 211 212 213 214 | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | - - + + - - + + - + + + + - - + + + + + + + + | encoding = (_generalPurposeBitFlag & (1 << 11) ? OF_STRING_ENCODING_UTF_8 : OF_STRING_ENCODING_CODEPAGE_437); _fileName = [[stream readStringWithLength: fileNameLength encoding: encoding] copy]; if (extraFieldLength > 0) |
︙ |