fix(anatomy): V1-2.2 review findings, PIs and HTML refused, bounds
Security audit (PASS, 2 MEDIUM, 2 LOW) and verifier (ECARTS 6) on
741c25c: processing instructions and HTML fetchers refused, active
content under a long title classified, linear review groups, full
fixpoint check, bounded preview drawings, missing cap fixtures and
property checks, record wordings.
This commit is contained in:
1 parent
741c25c464
commit
8294d5471c
15 files changed
+448
-72
No files matched your search
@@ -34,7 +34,8 @@ export interface GlueModule {
|
||||
|
||||
/** A stored version being gathered (crates/wasm `PreviewBuilder`). */
|
||||
export interface GluePreviewBuilder {
|
||||
add_drawing(assetId: string, sha256: string, bytes: Uint8Array): void
|
||||
/** `false` past 16 drawings or a drawing over 2 MiB; the build then throws `caps: drawings`. */
|
||||
add_drawing(assetId: string, sha256: string, bytes: Uint8Array): boolean
|
||||
/** Consumes the builder; throws `<kind>: <detail>` (`invalid_document`, `drawing_missing`,
|
||||
* `drawing_hash_mismatch`, `fingerprint_mismatch`, `caps`, `invalid_shape`, `invalid_json`). */
|
||||
build(inputJson: string): GluePreviewSheet
|
||||
|
||||
Reference in new issue
Block a user