Commit Graph
5619 Commits
Author SHA1 Message Date
Dylan M. Taylor d2b0bef7bf Merge pull request #1362 from storytold/sec/docpath-long-path
craft-docpath: prove a multi-megabyte UNC path parses iteratively
2026-11-14 14:53:24 -05:00
Dylan M. Taylor fae9569718 craft-docpath: prove a multi-megabyte UNC path parses iteratively 2026-11-14 14:53:16 -05:00
Terra854 58ef208c13 fix: preserve RAW identity and SVG byte-limit reporting 2026-11-15 03:49:35 +08:00
Dylan M. Taylor 25abb43bde craft-psd: pin that a length not fitting 32 bits is refused, not truncated 2026-11-14 14:44:05 -05:00
Dylan M. Taylor abe4aca262 vendor: record the hayro-syntax transmute as an audited exception 2026-11-14 14:44:00 -05:00
Dylan M. Taylor 5a457dda6a Merge pull request #1341 from storytold/sec/pdf-no-rc4-create
craft-pdf: refuse to create RC4 encryption without an explicit legacy call
2026-11-14 14:43:13 -05:00
Dylan M. Taylor 9d9cd81013 Merge pull request #1344 from storytold/codex/pdfx1a-review-hardening
fix(prepress): address PDF/X review findings
2026-11-14 14:41:49 -05:00
Dylan M. Taylor cbf6ea8584 Merge pull request #1335 from storytold/codex/xml-dtd-review-hardening
fix(xml): address DTD validator review findings
2026-11-14 14:41:44 -05:00
Dylan M. Taylor 3a8797a7f4 Merge pull request #1345 from storytold/sec/dwg-fail-closed
craft-dwg: refuse to convert without a worker instead of running acadrust in-process
2026-11-14 14:22:47 -05:00
Dylan M. Taylor c6221e42ff Merge remote-tracking branch 'storytold/main' into sec/pdf-no-rc4-create
# Conflicts:
#	crates/pdf/src/crypt/tests.rs
2026-11-14 13:47:06 -05:00
Dylan M. Taylor 75a654f4f8 craft-pdf, craft-pkcs7: compare password-derived verifiers without an early exit (#1340)
The PKCS#12 MAC and the PDF security handler's /U, R5/R6 and file-key
checks used plain equality, which stops at the first differing byte and
narrows a guess. Both crates now use a length-checked comparison that
folds every byte (the helper craft-offcrypto already used).
2026-11-14 13:45:48 -05:00
Dylan M. Taylor c86ea6802a craft-ora, craft-kra: charge every entry to one document-wide total (#1339)
An archive could hold many individually allowed members whose combined
decompression was unbounded, because both readers passed
max_total_bytes: u64::MAX to craft-zip. Each now passes MAX_TOTAL (4 GiB)
and every entry read is charged to it.

craft-fig's declared-entry cap drops from 1,000,000 to 100,000 to match the
other ZIP readers; its images were already bounded by Limits::max_image_total.
2026-11-14 13:45:31 -05:00
kiwi4boy 3982a020f6 Merge branch 'xlsb-formulas' into xlsb-names
# Conflicts:
#	crates/xlsx/tests/xlsb.rs
2026-11-14 13:32:33 -05:00
kiwi4boy aa622a2e20 Merge branch 'xlsb-formulas' into xlsb-styles
# Conflicts:
#	crates/xlsx/tests/xlsb.rs
2026-11-14 13:32:25 -05:00
kiwi4boy 8db01e7aa6 Merge branch 'xlsb-formulas' into xlsb-tables 2026-11-14 13:32:09 -05:00
kiwi4boy e3a384ef0b Merge branch 'xlsb-formulas' into xlsb-sizes 2026-11-14 13:32:08 -05:00
Dylan M. Taylor 74509ff055 Merge pull request #1351 from storytold/fix/reland-word6-doc-reader
craft-doc-binary: re-land Word 6.0/95 reader on main
2026-11-14 13:28:47 -05:00
kiwi4boy 24e6266119 craft-xlsx: review fixes: spaced string chains flatten, module sheets and supporting links are capped
- literal_texts now accepts a spaced operand as literal_text does, and the
  chain flattens with the spacing kept on its strings, so a chain the Python
  check accepts is written flat ("x"& "="&"1", not "x"&( "="&"1")).
- Every BrtBundleSh counts toward the 1,024-sheet cap, a skipped module
  sheet too, since each keeps a place in the sheet links.
- Supporting links are capped at 65,536; past it the links aren't read and
  formulas keep their saved results.
2026-11-14 13:27:25 -05:00
Dylan M. Taylor 3032d970a6 craft-doc-binary: Word 6.0/95 text in an East Asian code page is refused, not lost
The review of wordcraft#6345 found that text in code page 932, 936, 949 or 950
was read a byte at a time, each byte above ASCII becoming U+FFFD, and the file
opened with its characters gone. Such a file is refused as every Word 6.0/95
file was before, until the piece walk decodes byte pairs. The test that
asserted the replacement characters is replaced by one that asserts the
refusal and that the same text in a Western font still opens.

The module comment on the Word 6 stylesheet header now matches the reader (a
u16 header size, then the header), as the other review comment asked.

(cherry picked from commit 92f8dd24d1)
2026-11-14 13:27:16 -05:00
kiwi4boy 387eab39f4 .doc import: Word 6.0/95 files open with their text, formatting, tables and styles
Ported from storytold/wordcraft#6317, #6335 and #6345 (one series): Word 6.0
and Word 95 files are read instead of refused: text in its code page (by font
charset, language and style), character and paragraph formatting, tables and
paragraph styles. Paths follow craft-doc-binary (craft-wordmodel,
craft-codepage, craft-cfb).

(cherry picked from commit aa220afc77)
2026-11-14 13:27:16 -05:00
batistalucasv 80ed9665e7 craft-docx: preserve w:numberingChange without active list and raise w:original bound 2026-11-14 15:25:54 -03:00
Dylan M. Taylor 81e1dcec5a craft-dwg: refuse to convert without a worker instead of running acadrust here
The bridge fell back to decoding in the calling process whenever no worker
was configured, or the worker failed to start, which is exactly the case the
audit called out: acadrust allocates from sizes a hostile file declares, and
an allocation failure or stack overflow ends the process. Conversions are
now refused without a worker, a worker that cannot start is an error, and
allow_in_process() is the explicit opt-in for input known to be trusted.
2026-11-14 13:16:57 -05:00
vangel76andClaude Sonnet 5.5 0edccaf1bc docx: category gridlines follow line and area points when the axis crosses mid
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:59:56 +01:00
vangel76andClaude Sonnet 5.5 40d27e4ede docx: bar category labels start after the axis title strip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:59:56 +01:00
aiongg e5c59f94fb Integration: lines owed by canvas-widgets-w4 (install app id), dialogs-w15 (SwatchTable export), dialogs-w8 and dialogs-w4 (color test modules) 2026-11-14 17:59:08 +00:00
vangel76andClaude Sonnet 5.5 ca3390ec17 wordmodel: ChartSpec::default uses the value-axis preset
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:58:38 +01:00
vangel76andClaude Sonnet 5.5 e1cd8b5e01 docx: no_fill wins over a stored series colour
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:58:38 +01:00
vangel76andClaude Sonnet 5.5 4d8273712e docx: count chart axis format characters like the model
The reader counted UTF-8 bytes against 255 while the model keeps 128 characters,
so a CJK axis format was written and then dropped on reading. Use MAX_FMT.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:58:38 +01:00
aiongg b0d37347e9 Contract stubs: ToolHost::shown_space (canvas-widgets-w1; read by canvas-widgets-w14) 2026-11-14 17:58:34 +00:00
Dylan M. Taylor d74e60b2d5 craft-pdf: refuse to create RC4 encryption without an explicit legacy call
The create() API exposed RC4-40 and RC4-128 behind a doc comment, so an app
could write files whose encryption protects nothing. create() now returns
Unsupported for both schemes; create_legacy() and
Document::set_encryption_legacy() are the explicit ways to write a file that
must stay readable by an old reader. Tests and the encrypt example, which
read and write every algorithm, use the legacy entry points.
2026-11-14 12:57:23 -05:00
aiongg e751988b64 panels-w31: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg e392c4f38c panels-w31: repair 1 2026-11-14 17:56:01 +00:00
aiongg 3802fcf910 panels-w31: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg 2be14c1ac5 panels-w13: compile fix (include row field is FnMut: the grid body runs per pass) 2026-11-14 17:56:01 +00:00
aiongg 552da163a2 panels-w13: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg 2fa69d40d8 panels-w13: repair 1 2026-11-14 17:56:01 +00:00
aiongg 6c3fe5e209 panels-w13: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg 563d2cb881 panels-w12: test fixes (browser Delete key trial) 2026-11-14 17:56:01 +00:00
aiongg bbd6f2b6af panels-w12: review fixes (review-2) 2026-11-14 17:56:01 +00:00
aiongg a3b66978e3 panels-w12: review fixes (picker.rs browser prop) 2026-11-14 17:56:01 +00:00
aiongg f774c0a126 panels-w12: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg 4fadbbcc2a panels-w12: repair 1 2026-11-14 17:56:01 +00:00
aiongg ead709b8d5 panels-w12: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg ac056667b1 panels-w10: review fixes (review-2) 2026-11-14 17:56:01 +00:00
aiongg 429fe0321a panels-w10: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg 0780608ff2 panels-w10: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg e93eaa8dfd panels-w9: review fixes (recording.rs) 2026-11-14 17:56:01 +00:00
aiongg b14f4d7f29 panels-w9: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg 33e79d645d panels-w9: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg 92cef7ac0a panels-w8: clone the row icon (compile fix) 2026-11-14 17:56:01 +00:00