1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00
Files
MeshAgent/microstack
Phil Elwell 0ba325af84 Fix agent crash on ARM64 (Raspberry Pi)
The function ILibWebClient_ProcessWebSocketData in
microstack/ILibWebClient.c reads a 64-bit integer from an address that
is only 2-byte aligned. ARM64 kernels support unaligned accesses from
userspace, but it is not enabled by default and frowned upon - the
required exception handling is ugly and inefficient.

Fix that illegal access in a simple way with a memcpy. More involved and
efficient solutions are also available, such as replacing the byte order
conversion functions with de/serialise functions that take a pointer.

Fixes: https://github.com/Ylianst/MeshAgent/issues/183

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
2023-06-05 11:24:45 +01:00
..
2018-09-05 11:01:17 -07:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-02-04 14:43:55 -08:00
2022-08-10 11:25:03 -07:00
2022-02-04 14:43:55 -08:00