[Ecls-list] c_string_to_object crash on bad input?

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Tue May 13 08:48:22 UTC 2008


On Tue, May 13, 2008 at 3:22 AM, jon klein <jk at artificial.com> wrote:
> I'm trying to embed ECL into a C program and am running into some
>  trouble.  Any time any bad data goes into c_string_to_object, ECL
>  prints out a flood of error messages and eventually crashes.  This
>  happens with both 0.9j and the latest CVS.

Yes, you are right, there are no security checks around this function.
I will add them once I solve other issues this week.

>  I've actually run into similar problems when an error occurs with
>  cl_eval -- I suspect it's another manifestation of the same issue.
>  Does anyone know of a solution to this?  Am I doing something wrong?

Do not use cl_eval. Use si_safe_eval(3,form,env,value) It will capture
any error and return "value" in such a case.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list