Skip to content
Commit 287916c7 authored by Daniel Leung's avatar Daniel Leung Committed by Carles Cufí
Browse files

logging: sys_t/catalog: fix unaligned access



When copying parameters into payload buffer, it is possible
that after copying a string over, the pointer to buffer is
no longer aligned on 4 or 8 bytes. And some toolchains may
decide to treat the copy as aligned since the values being
copied are 4 or 8 bytes. This results in unaligned memory
access and hardware exception. So change the copy to memcpy
to avoid potential unaligned access.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 00f3e446
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment