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

2021-08-23 Thread Tony Whyman
On 23/08/2021 13:03, Alex Peshkoff via Firebird-devel wrote: The minor bug is that if TAG_BUFFER_BYTES_SIZE is set to > 256MB no error status is reported on a call to createBatch. Instead, you only know you have a problem when an error is returned from IBatch::add - looks like the buffer size

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

2021-08-23 Thread Alex Peshkoff via Firebird-devel
On 8/21/21 6:26 PM, Tony Whyman wrote: 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