Files
ad95bd6228 fix: close base64 encoder in DelegatedState.EncodeAsUrlParam to prevent data loss (#136)
The base64.NewEncoder requires Close() to flush any remaining buffered
bytes with proper padding. Without it, the final 1-2 bytes of the JSON
payload could be silently dropped, producing truncated base64 that fails
to decode — breaking the encode/decode round-trip.

Found via fuzz testing with FuzzDecodeDelegatedState.

Co-authored-by: Hanzo Dev <[email protected]>
2026-05-11 10:09:27 +02:00
..