ruchirguitar and Claude Opus 5.5
be002ddcde
fix(opc): keep legacy leading-slash part names readable under zip hardening
...
OPC part names are a virtual namespace that is never joined to a filesystem
path, so a legacy writer's `/docProps/core.xml` must stay a readable part
even though craft-zip's named APIs now refuse leading separators.
craft-zip gains an explicit index-based virtual-name API
(`virtual_entry_name`, `virtual_entry_size`, `read_virtual_index`): leading
`/` and `\` are stripped, while `..`, drive prefixes, NUL and empty names
are still refused. The named APIs (`names`, `entry_name`, `read`, ...) are
unchanged.
Both the eager `Package` and the lazy `LazyPackage` readers, and
`declared_oversized`, enumerate and read through it. The
`backslash_zip_entry_names_are_found` case regains its `/docProps/core.xml`
entry (patched into the headers, since the writer refuses it) and asserts it
in both readers; new tests assert traversal and drive-prefix entries are
not parts in either reader, and that the virtual API does not open the
named one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-27 06:16:48 +05:30
..
2026-11-24 13:36:12 +00:00
2026-11-24 20:00:50 +00:00
2026-11-24 04:48:57 +00:00
2026-11-26 14:31:27 +01:00
2026-11-25 14:42:53 -08:00
2026-11-24 16:22:42 +00:00
2026-11-26 00:17:55 +00:00
2026-11-23 19:01:32 -05:00
2026-11-26 10:17:45 +01:00
2026-11-26 12:01:59 +07:00
2026-11-24 19:49:22 +00:00
2026-11-26 10:32:58 +07:00
2026-11-26 10:31:53 +07:00
2026-11-26 10:19:17 +01:00
2026-11-26 10:06:58 +07:00
2026-11-24 19:56:06 +00:00
2026-11-26 10:19:25 +01:00
2026-11-26 10:26:22 +07:00
2026-11-26 21:44:32 +07:00
2026-11-24 22:31:29 +00:00
2026-11-26 10:23:09 +01:00
2026-11-23 19:01:32 -05:00
2026-11-25 01:55:58 +00:00
2026-11-26 10:20:42 +01:00
2026-11-24 22:33:40 +00:00
2026-11-24 19:46:16 +00:00
2026-11-26 10:19:48 +01:00
2026-11-26 11:21:31 +01:00
2026-11-25 05:53:47 +07:00
2026-11-25 01:32:48 +00:00
2026-11-26 10:32:46 +07:00
2026-11-26 20:03:19 +07:00
2026-11-26 19:50:00 +07:00
2026-11-26 20:14:49 +01:00
2026-11-23 10:54:18 +00:00
2026-11-26 10:18:16 +01:00
2026-11-25 14:21:08 -08:00
2026-11-26 01:28:50 +00:00
2026-11-25 01:40:04 +00:00
2026-11-25 19:44:12 +00:00
2026-11-24 19:48:21 +00:00
2026-11-26 10:12:14 +07:00
2026-11-24 22:31:46 +00:00
2026-11-24 15:37:34 +00:00
2026-11-26 10:18:16 +01:00
2026-11-26 10:10:42 +07:00
2026-11-26 10:20:57 +01:00
2026-11-26 09:09:56 -06:00
2026-11-26 10:32:14 +07:00
2026-11-25 01:32:48 +00:00
2026-11-26 10:05:20 +07:00
2026-11-24 16:08:36 -05:00
2026-11-24 19:48:42 +00:00
2026-11-25 10:24:16 +07:00
2026-11-24 01:14:02 +05:30
2026-11-26 10:18:16 +01:00
2026-11-25 00:04:24 +00:00
2026-11-24 01:14:02 +05:30
2026-11-26 10:10:26 +07:00
2026-11-26 20:03:24 +07:00
2026-11-25 12:32:04 +07:00
2026-11-26 10:28:26 +07:00
2026-11-24 22:32:03 +00:00
2026-11-26 10:22:15 +01:00
2026-11-24 22:31:09 +00:00
2026-11-24 22:31:29 +00:00
2026-11-26 11:03:22 +01:00
2026-11-26 10:07:34 +07:00
2026-11-27 06:16:48 +05:30
2026-11-26 10:19:40 +01:00
2026-11-25 15:21:19 +01:00
2026-11-26 10:28:51 +07:00
2026-11-26 11:16:03 -05:00
2026-11-24 01:28:35 +05:30
2026-11-24 19:46:48 +00:00
2026-11-24 10:24:05 -03:00
2026-11-23 01:29:52 +00:00
2026-11-24 19:47:11 +00:00
2026-11-23 19:01:32 -05:00
2026-11-24 19:48:21 +00:00
2026-11-24 22:30:45 +00:00
2026-11-24 23:02:29 +00:00
2026-11-24 22:33:02 +00:00
2026-11-24 19:47:11 +00:00
2026-11-26 10:22:31 +01:00
2026-11-23 19:01:32 -05:00
2026-11-26 10:18:31 +01:00
2026-11-23 09:06:43 -08:00
2026-11-25 09:05:18 +05:30
2026-11-23 10:54:17 +00:00
2026-11-26 10:21:27 +01:00
2026-11-26 10:18:54 +01:00
2026-11-26 19:50:07 +07:00
2026-11-26 10:08:27 +07:00
2026-11-26 20:14:28 +07:00
2026-11-25 16:19:38 +00:00
2026-11-26 10:06:46 +07:00
2026-11-25 02:58:54 +00:00
2026-11-25 12:11:58 +01:00
2026-11-26 15:34:12 +00:00
2026-11-23 19:01:32 -05:00
2026-11-24 04:07:24 +00:00
2026-11-26 00:17:55 +00:00
2026-11-25 19:11:46 +00:00
2026-11-25 15:13:25 -03:00
2026-11-25 14:45:46 -05:00
2026-11-25 21:24:34 +00:00
2026-11-26 20:14:33 +07:00
2026-11-26 21:44:32 +07:00
2026-11-24 08:08:04 +07:00
2026-11-23 19:01:32 -05:00
2026-11-26 11:21:31 +01:00
2026-11-24 22:31:29 +00:00
2026-11-26 20:09:37 +07:00
2026-11-25 14:06:50 -08:00
2026-11-24 19:49:22 +00:00
2026-11-24 21:29:34 +00:00
2026-11-27 06:16:48 +05:30