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

Benoît Minisini gambas at ...1...
Sat Feb 16 20:16:10 CET 2013


Le 16/02/2013 19:57, Tobias Boege a écrit :
> 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
>

Oops. Next time I will read your mail more carefully!

-- 
Benoît Minisini




More information about the User mailing list