On 12/06/11 21:14, Jesus Garcia wrote: >> >> The only way to have absolutely save UDFs is to run them in separate >> process. But I'm afraid that this will make them work much slower. >> >> Catching unhandled exceptions from foreign module is impossible in >> almost all cases. Code invoking UDFs does catch what it can catch. To >> make sure try to access wrong address in your UDF and see what happens >> > I understand that is possible, but must be paid with speed, and is better > speed than security. When the engine shutdown, can be the database > corrupted, or the engine close all processes right? > >
Does engine shutdown or die on AV in your case? >> BTW, in your case the best solution is to avoid UDF at all - just use >> builtin power() function. >> > I have no problem with the UDF, is corrected years ago and i need it ecause > i use FB 1.0 and IB. Was just an example. What about FB1.X - it definitely can damage database in case of unexpected exit. I.e. in your case it does not matter, exit from engine (done when exception from UDF is caught) or just kill it with segfault. ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel