|
From: | Guillaume du Pontavice |
Subject: | [lwip-devel] Re: [bug #26273] etharp.c : fix alignment issue in etharp_raw |
Date: | Tue, 21 Apr 2009 20:15:00 +0200 |
Update of bug #26273 (project lwip):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
I guess you have copied those lines from autoip.c:419 or etharp.c:667 ? In
these places, it is understandable to use memcpy, since we copy from a
2-byte-aligned struct to a 4-byte-aligned.
However, in your patch it is the other way round: a 4-byte-aligned struct is
casted to a 2-byte-aligned (which is in turn copied). How could that fail?
I don't have that strong an opinion against your patch, (since we already do
it that way in other places), only, I would like to understand why it fails
before changing it.
Someone know the answer?
Nachricht geschickt von/durch Savannah
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26273>
_______________________________________________
http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |