PDFium: upstream asks to go-pdfium (per-module reader table, build recipe and attestation for pdfium.wasm) #1147

Open
opened 2026-11-09 04:21:26 +00:00 by Cordy · 0 comments
Owner

Follow-up from #1101 (v0.6.404).

  1. Reader table per module. go-pdfium keeps the readers of open documents in one process-wide table indexed by a number the wasm module passes back (data.go, host_functions.go). A render the watchdog gave up on still runs beside the next one and could ask for its bytes. Its output is discarded and the module has nothing mounted and no network, so no leak path was found; Nikola kept the approved rule (at most 2 stuck renders, the next render may start) on 2026-11-09. Ask upstream (klippa-app/go-pdfium) to key the table by module instance; close the residual in Cairn once released.
  2. Build recipe and attestation. Ask Klippa for the reproducible build recipe (PDFium revision, Emscripten version, flags) of the shipped pdfium.wasm (sha256 e6f77e01…8ade, 5,828,543 bytes) and, if possible, a provenance attestation, so Cairn can rebuild or verify it.
  3. Cairn reads the embedded module through //go:linkname to internal/pdfium_wasm.Module for the compile-cache marker (fx6t); a public accessor upstream would remove that.

No external post is made without Nikola's go-ahead.

Follow-up from #1101 (v0.6.404). 1. **Reader table per module.** go-pdfium keeps the readers of open documents in one process-wide table indexed by a number the wasm module passes back (`data.go`, `host_functions.go`). A render the watchdog gave up on still runs beside the next one and could ask for its bytes. Its output is discarded and the module has nothing mounted and no network, so no leak path was found; Nikola kept the approved rule (at most 2 stuck renders, the next render may start) on 2026-11-09. Ask upstream (klippa-app/go-pdfium) to key the table by module instance; close the residual in Cairn once released. 2. **Build recipe and attestation.** Ask Klippa for the reproducible build recipe (PDFium revision, Emscripten version, flags) of the shipped `pdfium.wasm` (sha256 e6f77e01…8ade, 5,828,543 bytes) and, if possible, a provenance attestation, so Cairn can rebuild or verify it. 3. Cairn reads the embedded module through `//go:linkname` to `internal/pdfium_wasm.Module` for the compile-cache marker (fx6t); a public accessor upstream would remove that. No external post is made without Nikola's go-ahead.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1147
No description provided.