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:37:46 +0000 (14:37 -0700)
commit65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3
treea90dc5897c328692b7fa6bcf48bdbc142b4d7e02
parentf643eb38c36eb63f612e20dea09fd43ac6a6b360
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.

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