[PD] mrpeach/net iemnet and other way to get file from the net

Cyrille Henry ch at chnry.net
Thu Feb 13 18:01:43 CET 2014


hello Martin,

thanks a lot for the quick fix.
It did not crash any more on my 64b linux computer.
we will perform long term stability test.

thanks
cheers
cyrille


Le 12/02/2014 19:46, Martin Peach a écrit :
> On 2014-02-12 11:51, Martin Peach wrote:
>> It looks like a 64-bit issue. If it really crashes at
>> x->x_addr = ntohl(*(long *)hp->h_addr);
>> then possibly the long type is too long or the h_addr field is not a
>> long in 64-bit or h_addr is not properly initialized, so ntohl() looks
>> in the wrong place and segfaults. I never get any such crashes on 32-bit
>> systems, but so far I haven't tried it on 64-bit.
>>
>>
>>>
>
> I just committed a change to tcpclient.c in svn that might fix it, changing long to uint32_t to make sure it accesses a 32-bit field.
>
> Martin
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list