Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csladspa segmentation fault & fix

Date2007-11-26 08:55
FromVictor Lazzarini
SubjectRe: [Cs-dev] csladspa segmentation fault & fix
In any case, it was a nasty bug, thanks
for spotting it.

Victor

>
>
>
>
> On Sunday 25 November 2007 15:55:36 Victor Lazzarini
> > wrote: But the code already checks for that, all we need
> > is to move the assignment. By the way, the crashes
> > seem to be system-dependent. The assignment of
> > path to NULL does not seem to crash it everywhere.
>
> I guess there might be implementations of std::string that
> check for  non-NULLness of the passed pointer. However the
> c++ standard doesn't seem to  specify behavior in that
> case. In the particular case of the basic_string
> constructor with a char* parameter, it is specified that
> the pointer shall  not be NULL
> (http://www.kuzbass.ru:8086/docs/isocpp/lib-strings.html,
> section  21.3.1)
>
> >
> > Changed the code; will commit.
>
> Thanks!
>
>
> --
>
>     Felipe Sateler
>
>
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by:
> Microsoft Defy all challenges. Microsoft(R) Visual Studio
> 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> [Attachment: fsateler@gmail.com.sig]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net