[reSIProcate] Bug in ares

Byron Campen bcampen at estacado.net
Fri Jan 11 10:04:23 CST 2008


	Excellent find guys! I'll be fixing this today, and cutting a new  
point-release (1.2.3).

Best regards,
Byron Campen


> Hi ims3g,
>
>> I wondered it was caused by alignment issue.
>
>> After change line
>> memset(newserv + (*nservers * sizeof(struct server_state)), '\0',
>> sizeof(struct server_state));
>> to
>> memset(&newserv[*nservers], '\0', sizeof(struct server_state));
>
>> The coredump seemed gone.
> Same here. I inspected the addresses of
> newserv + (*nservers * sizeof(struct server_state))
> and
> newserv[*nservers]
> while they are the same for the first nameserver they indeed differ  
> for
>   the second. So I agree to your assumption that alignment causes  
> the error.
>
> Greetings
> Johannes Dohmen
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080111/0c3ac461/attachment.bin>


More information about the resiprocate-devel mailing list