diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2016-09-21 14:56:04 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2016-09-21 15:18:27 +0200 |
commit | 8bf9763656c9209f74cda460225da5a9939494cc (patch) | |
tree | 0c98c1679755cb810cfddba91034335c88248c7f /src/hwdb/hwdb.c | |
parent | 21dc02277d6f0844c1f7ab7ccb543b69848fff32 (diff) |
sd-hwdb: fix child/value offset calculation
It is not legal to use hard-coded types to calculate offsets. We must
always use the offsets of the hwdb header to calculate those. Otherwise,
we will break horribly if run on hwdb files written by other
implementations or written with future extensions.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src/hwdb/hwdb.c')
0 files changed, 0 insertions, 0 deletions