[Gambas-user] gb.net.curl FTPClient crash

Tobias Boege taboege at ...626...
Sat Feb 16 19:57:10 CET 2013


On Sat, 16 Feb 2013, Beno?t Minisini wrote:
> Le 16/02/2013 17:03, Tobias Boege a ?crit :
> > Hi Daniel,
> >
> > if I give an empty array to the FTPClient.Exec() method:
> >
> > --8<---------------
> > Dim h As New FTPClient
> >
> > h.Exec([""])
> > --8<---------------
> >
> > the interpreter gets a segfault. I think you should either warn or do
> > nothing in this case.
> >
> > Regards,
> > Tobi
> >
> 
> Indeed. It should be fixed in revision #5551.
> 

This does not fix it (GB.Array.Count() correctly returns non-zero in the
above case; the element is empty not the array, sorry for my unclear words).

I've taken the liberty to commit a working fix as I couldn't resist looking
at the code now.

Regards,
Tobi




More information about the User mailing list