mirror of
https://github.com/apache/thrift.git
synced 2026-10-28 16:35:10 +08:00
Client: delphi TBufferedTransportImpl and TFramedTransportImpl forward CheckReadBytesAvailable() to the inner transport only when they hold fewer bytes than requested. A negative size never qualified, so it never reached the endpoint transport, which rejects negative sizes. Pass it on unchanged, and add tests for negative string and container sizes on the buffered and framed compositions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>