Re: [Firebird-devel] Sanity checks for methods' parameters in Y-valve

2022-09-16 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 15.09.2022 18:08: I do not want to say segfault is good thing and will not provide as a sample trivial things like strcpy() - but almost any function in C library will segfault when passed wrong address of some data. strcpy() is a quite bad example

Re: [Firebird-devel] Sanity checks for methods' parameters in Y-valve

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 18:56, Dimitry Sibiryakov wrote: Hello All.   If someone by mistake calls IStatement::execute() providing metadata but no data buffer, it will pass the values as is to a provider and overall result will be segfault.   Shouldn't some sanity checks to be performed there? Not