mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
`z.string().max()` counts JavaScript string units (UTF-16 code units), not bytes. The audit-table guarantee for SB-10 consent artefacts is byte-bounded — a UTF-8 artefact full of multi-byte code points (CJK, emoji) would otherwise slip past the 64 KB row budget. Replace the `.max()` with a `.refine()` that uses `Buffer.byteLength(value, "utf8")`. Closes security M1 from the v1.4.40 QA round.