Subject: Re: segfault on bad hostname resolve

Re: segfault on bad hostname resolve

From: Gisle Vanem <giva_at_bgnett.no>
Date: 2005-11-14

"Daniel Stenberg" <daniel@haxx.se> wrote:

> It unfortunately assumes that we can write 16 or 32 bits data to the given
> address, which is not always the case since the data address might be
> unaligned and then it doesn't work on MIPS (for example, it will also fail on
> other archs).

It didn't occured to me that such horrid machines exists. Looking at extract.h
from tcpdump sources, simply extracting 16/32-bit values isn't so straith forward.
Maybe configure should test if the processor doesn't handle unaligned loads
(LBL_ALIGN)?

--gv
Received on Mon Nov 14 13:53:39 2005