Busybox 1.16.x dnsd alignment problems
Lars Reemts
lars at reemts.de
Wed Apr 28 13:21:32 UTC 2010
> Let me know whether this patch fixes all your problems.
It fixes my busybox / dnsd related problems. I didn't really expect it
to solve _all_ my problems ;-)
Am 20.04.2010 22:25, schrieb Denys Vlasenko:
> On Sat, Apr 17, 2010 at 7:46 AM, Lars Reemts <lars at reemts.de> wrote:
>
>>> Does it work if you add PACKED here in dnsd.c?
>>>
>>
>>> struct type_and_class {
>>> uint16_t type PACKED;
>>> uint16_t class PACKED;
>>> };
>>>
>> No, but it does work with:
>> struct type_and_class {
>> uint16_t type;
>> uint16_t class;
>> }PACKED;
>>
>> Then the disassembler also shows some calls to memcpy with a length of 2.
>>
> http://busybox.net/downloads/fixes-1.16.1/busybox-1.16.1-dnsd.patch
>
> Let me know whether this patch fixes all your problems.
>
--
Lars Reemts, Lange Wieke 1, 26817 Rhauderfehn, Germany
Tel: +49 4952 942290, Fax: +49 4952 942291
mailto: lars at reemts.de
More information about the busybox
mailing list