Re: [Firebird-devel] getInfo() result format

2022-09-07 Thread Alex Peshkoff via Firebird-devel
On 9/7/22 19:33, Dimitry Sibiryakov wrote:   At fourth line you can get read-past-buffer and may be crash. And this code is copy-pasted everywhere in Firebird source. Do not remember - does ClumpletReader already supports getInfo() result format? Firebird-Devel mailing list, web

Re: [Firebird-devel] getInfo() result format

2022-09-07 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 07.09.2022 18:26: Not sure what you mean by 'terminal item', but it may be followed by isc_info_end if that fits into buffer. What about two bytes length - it's single-byte item not followed by anything. see how it's added: Ok, now see how it is

Re: [Firebird-devel] getInfo() result format

2022-09-07 Thread Alex Peshkoff via Firebird-devel
On 9/7/22 19:18, Dimitry Sibiryakov wrote: Hello All.   isc_info_truncated is a terminal item which is NOT followed by two bytes length, right? Not sure what you mean by 'terminal item', but it may be followed by isc_info_end if that fits into buffer. What about two bytes length - it's

[Firebird-devel] getInfo() result format

2022-09-07 Thread Dimitry Sibiryakov
Hello All. isc_info_truncated is a terminal item which is NOT followed by two bytes length, right? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Service errors returned by API

2022-09-07 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 01.09.2022 18:16: Suppose adding N buffers for stream data instead current one should not be too hard to do. But what about API for that, format of data sent to user, etc. - that should be well though before starting with this. I was thinking about new