summaryrefslogtreecommitdiffstats
path: root/internal/nym/protocol.go
diff options
context:
space:
mode:
authorGab Virebent <gabriel1@virebent.art>2026-07-02 18:01:21 +0200
committerGab Virebent <gabriel1@virebent.art>2026-07-02 18:01:21 +0200
commitedfcb7a68da978a45ec5d0a2d37648f2f93e15e2 (patch)
tree5e9d2c4e9b4f739314016788dad43ced91bc8317 /internal/nym/protocol.go
parentf615473c408a76eb59bf98a3022c9998bea3bc7e (diff)
downloadnymdrop-edfcb7a68da978a45ec5d0a2d37648f2f93e15e2.tar.gz
nymdrop-edfcb7a68da978a45ec5d0a2d37648f2f93e15e2.tar.xz
nymdrop-edfcb7a68da978a45ec5d0a2d37648f2f93e15e2.zip
Fix base64 encoding crash on file attachments over ~1MB
String.fromCharCode(...bytes) spreads every byte as a separate call argument, exceeding the engine's max-arguments limit on multi-MB files (RangeError: Maximum call stack size exceeded). Chunk the conversion instead. Reported by a real submitter trying a 1.5MB file.
Diffstat (limited to 'internal/nym/protocol.go')
0 files changed, 0 insertions, 0 deletions