275f0c341c
Replaced (uint64_t *) dereference of (char *) variable with memcpy to avoid unaligned memory access. It fixes the following error reported by ubsan: spdk/lib/blobfs/blobfs.c:1492:2: runtime error: load of misaligned address 0x00000047a136 for type 'uint64_t', which requires 8 byte alignment Change-Id: I5f3f28a52b8cbe3eb30394ae7ebd0e64b683db57 Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454886 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
blobfs_internal.h | ||
blobfs.c | ||
Makefile | ||
tree.c | ||
tree.h |