mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
## Summary - Add proper bounds checking for encoding operations that produce larger output than input - Handle allocation failures gracefully by returning appropriate errors - Add defensive checks in string initialization functions ## Test plan - Added test case for encoding operations with large buffers - Verified existing buffer tests still pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>