commit | 7a72ecd3148ab91d942c7a360e76e6b68f5985b4 | [log] [tgz] |
---|---|---|
author | Leandro Pereira <leandro.pereira@intel.com> | Tue Sep 05 16:32:27 2017 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Thu Sep 07 05:49:17 2017 -0500 |
tree | 436991507dfcf8ee685dcd1e300f0013c10d6f86 | |
parent | 338426282707ba6678a1712f8ba1a1c43e5eb56a [diff] |
lib: json: Alignment should be considered when calculating struct size This was causing an unaligned pointer read on some architectures, leading to crashes. This could be alternatively solved by rounding the size to the nearest power of 2, but this wouldn't work with packed structs. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>