Re: [Firebird-devel] The IBatch Interface and Buffer Overflow

2021-08-21 Thread Tony Whyman
On 20/08/2021 16:18, Alex Peshkoff via Firebird-devel wrote: On 8/20/21 4:01 PM, Tony Whyman wrote: You can specify such limit - use IBatch::TAG_BUFFER_BYTES_SIZE parameter in batch parameters block when creating a batch, default is 16Mb, hard limit - 256Mb. Ywo such buffers will be availab

Re: [Firebird-devel] The IBatch Interface and Buffer Overflow

2021-08-21 Thread Tony Whyman
The good news is that I believe I have found a way around the problem. The bad news is that I think I have found another minor bug. The workaround for variable message sizes is to compute the "used" buffer size after each call to IBatch::add by ensuring that getAlignedLength() is refreshed for