bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libsframe/29856] libsframe asan: load misaligned at sframe.c:516


From: indu.bhagat at oracle dot com
Subject: [Bug libsframe/29856] libsframe asan: load misaligned at sframe.c:516
Date: Thu, 08 Dec 2022 06:48:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29856

--- Comment #1 from Indu Bhagat <indu.bhagat at oracle dot com> ---
Thanks for the report. The misaligned load here is for access to an element in
the in-memory abstraction provided by libsframe (namely struct
sframe_frame_row_entry). Now there are ways to resolve that (e.g., reorder
struct members so that they are aligned on their natural boundaries).

SFrame is an unaligned on-disk format. And as I look into this issue, I see
that there are going to be other places where similar issues with unaligned
loads will crop up: e.g., sframe_decode_fre_start_address () which reads 1/2/4
bytes from specific locations in the on-disk binary format section.

So far, I think the latter category can be resolved with usage of memcpy
instead of relying on the compiler generated misaligned loads. Will propose a
patch soon.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]