Files
bun.sh/test/regression
Claude Bot 46dd722761 Fix integer overflow in MySQL client when processing malformed packets
When the MySQL client receives a packet with the maximum possible length
(0xFFFFFF), adding PacketHeader.size (4 bytes) causes an integer overflow.
This was causing a panic with "integer overflow" when fuzzing the MySQL
client with malformed packets.

The fix adds a check before buffer allocation to ensure the packet length
is within safe bounds. If a packet exceeds the maximum safe size
(0xFFFFFF - 4), the connection is forcefully closed with an InvalidEncodedLength
error instead of panicking.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 23:11:08 +00:00
..