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

Martin Peach martin.peach at sympatico.ca
Wed Feb 12 19:46:42 CET 2014


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




More information about the Pd-list mailing list