Files
openairinterface5g/openair3/NAS/COMMON/UTIL
Guido Casati bac4f798f9 Fix misalignment issues in TLVEncoder macros ENCODE_U16, ENCODE_U24
This commit resolves undefined behaviour runtime errors related
to misaligned memory access. E.g.

> openair3/NAS/COMMON/IES/FGSMobileIdentity.c:193:3:
> runtime error: store to misaligned address 0x608000021e2b for type 'uint16_t',
> which requires 2 byte alignment 0x608000021e2b: note: pointer points here 00 f1 ...

* ENCODE_U24: safely encode 24-bit values into a buffer
  by using memcpy to copy 3 bytes in network byte order (big-endian).
* ENCODE_U16: safely encodes a 16-bit value into a buffer, handling
  misalignment by memcpy 2 bytes to buffer in network byte order (big-endian).
2024-08-23 11:34:44 +02:00
..
2019-02-12 10:12:07 +01:00
2017-10-23 12:22:13 +02:00
2015-10-06 16:53:42 +00:00
2020-03-04 13:38:04 +01:00
2017-10-23 12:22:13 +02:00
2023-06-01 12:07:26 +02:00
2017-10-23 12:22:13 +02:00
2017-10-23 12:22:13 +02:00
2017-10-23 12:22:13 +02:00
2023-04-28 16:25:24 +02:00
2023-06-01 12:07:26 +02:00