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 sure.

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

2022-09-15 Thread Dimitry Sibiryakov
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? -- WBR, SD. Firebird-Devel mailing list, web inter

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 17:18, Dimitry Sibiryakov wrote: Alex Peshkoff via Firebird-devel wrote 15.09.2022 16:14: On the other hand tomcrypt is successfully used in our sample plugin - which is problematic with static linking. For me that appears more interesting and useful. Not to say about code duplicati

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 15.09.2022 16:14: On the other hand tomcrypt is successfully used in our sample plugin - which is problematic with static linking. For me that appears more interesting and useful. Not to say about code duplication. Dead code elimination with static libr

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 17:07, Dimitry Sibiryakov wrote: Alex Peshkoff via Firebird-devel wrote 15.09.2022 12:04: With tommath there are no such issues...   Why don't force build with static libs? In what way it's better than own dynamic libraries?   Surely no problem with API/ABI. Therefore we link

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 15.09.2022 12:04: With tommath there are no such issues...   Why don't force build with static libs? In what way it's better than own dynamic libraries? Surely no problem with API/ABI. No mess and vulnerability with dynamic library search path.

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 16:38, Mark Rotteveel wrote: On 15-09-2022 15:19, Alex Peshkoff via Firebird-devel wrote: On 9/15/22 14:36, Adriano dos Santos Fernandes wrote: On 15/09/2022 08:18, Alex Peshkoff via Firebird-devel wrote: This is solved by install script - it creates symlink to /inst/path/firebird/

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Mark Rotteveel
On 15-09-2022 15:19, Alex Peshkoff via Firebird-devel wrote: On 9/15/22 14:36, Adriano dos Santos Fernandes wrote: On 15/09/2022 08:18, Alex Peshkoff via Firebird-devel wrote: This is solved by install script - it creates symlink to /inst/path/firebird/lib/.tm/libtommath.so.0 in system lib dir

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Mark Rotteveel
On 15-09-2022 13:13, Adriano dos Santos Fernandes wrote: On 15/09/2022 07:52, Mark Rotteveel wrote: On 15-09-2022 03:52, Adriano dos Santos Fernandes wrote: On 05/09/2022 08:13, Mark Rotteveel wrote: That is not really embedded IMHO. Firebird Embedded with Firebird 3.0 has become unwieldy and

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 14:36, Adriano dos Santos Fernandes wrote: On 15/09/2022 08:18, Alex Peshkoff via Firebird-devel wrote: On 9/15/22 14:00, Adriano dos Santos Fernandes wrote: Em qui., 15 de set. de 2022 07:06, Alex Peshkoff via Firebird-devel escreveu:     >     >   Why don't force build with sta

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Adriano dos Santos Fernandes
On 15/09/2022 08:18, Alex Peshkoff via Firebird-devel wrote: > On 9/15/22 14:00, Adriano dos Santos Fernandes wrote: >> Em qui., 15 de set. de 2022 07:06, Alex Peshkoff via Firebird-devel >> escreveu: >> >>     > >>     >   Why don't force build with static libs? >>     > >> >>     In what way it'

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 14:00, Adriano dos Santos Fernandes wrote: Em qui., 15 de set. de 2022 07:06, Alex Peshkoff via Firebird-devel escreveu: > >   Why don't force build with static libs? > In what way it's better than own dynamic libraries? Not put files in system lib outside of a p

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Adriano dos Santos Fernandes
On 15/09/2022 07:52, Mark Rotteveel wrote: > On 15-09-2022 03:52, Adriano dos Santos Fernandes wrote: >> On 05/09/2022 08:13, Mark Rotteveel wrote: >>> That is not really embedded IMHO. Firebird Embedded with Firebird 3.0 >>> has become unwieldy and even harder to use than earlier versions, >>> esp

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Adriano dos Santos Fernandes
Em qui., 15 de set. de 2022 07:06, Alex Peshkoff via Firebird-devel < firebird-devel@lists.sourceforge.net> escreveu: > > > > Why don't force build with static libs? > > > > In what way it's better than own dynamic libraries? > Not put files in system lib outside of a package manager. Adrian

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Mark Rotteveel
On 15-09-2022 03:52, Adriano dos Santos Fernandes wrote: On 05/09/2022 08:13, Mark Rotteveel wrote: That is not really embedded IMHO. Firebird Embedded with Firebird 3.0 has become unwieldy and even harder to use than earlier versions, especially if you compare it to other embedded database syst

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 12:30, Dimitry Sibiryakov wrote: Alex Peshkoff via Firebird-devel wrote 15.09.2022 11:08: Also, it's different in the sense that official package builds and package tomcrypt, but not tommath. We did discuss sometimes ago why for universal binary package we have to use built-in tomc

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 15.09.2022 11:08: Also, it's different in the sense that official package builds and package tomcrypt, but not tommath. We did discuss sometimes ago why for universal binary package we have to use built-in tomcrypt. Data structures, passed In it's API, de

Re: [Firebird-devel] Building Firebird Linux with --with-builtin-tommath

2022-09-15 Thread Alex Peshkoff via Firebird-devel
On 9/15/22 04:52, Adriano dos Santos Fernandes wrote: On 05/09/2022 08:13, Mark Rotteveel wrote: On 05-09-2022 13:00, Alex Peshkoff via Firebird-devel wrote: When adding it I cared about an ability to fix secirtiy issues in 3d-party libraries not rebuilding and reinstalling FB packages. With us