mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
FormData multipart parsing was truncating binary file content at null bytes for files 8 bytes or smaller. The root cause was using Semver.String's inline storage optimization which scans for null bytes to determine string length - appropriate for version strings but not for binary data. Replaced Field.value (Semver.String) with explicit value_off/value_len fields that store offset and length directly, preserving binary data with null bytes. Fixes #26740 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>