OSDN Git Service

Fix alignment after variable-length data.
authorElliott Hughes <enh@google.com>
Mon, 6 Jul 2015 21:16:12 +0000 (14:16 -0700)
committerElliott Hughes <enh@google.com>
Mon, 6 Jul 2015 21:43:28 +0000 (14:43 -0700)
commitdbb17b28312fee14f52bca39414ad200fc8ca5a1
treeaf7b5901578232c964c19bb6ddd9320faa615f6b
parentf542b30970ae863caceea1f635115f1195461e31
Fix alignment after variable-length data.

In the serialized output from netd, the strings come first. Some code
assumes -- reasonably enough -- that it can do unaligned reads of pointers,
so we need to ensure alignment after all the strings.

(cherrypick of 65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3.)

Bug: http://b/21192318
Change-Id: I456639127db9a2583f7f738e6b8103375d9387fd
libc/dns/net/gethnamaddr.c