Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #183 Signed-off-by: Phil Elwell <[email protected]>
- Loading branch information