Skip to content
Commit 7a72ecd3 authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

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: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 33842628
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment