Files
openairinterface5g/openair3/NAS/COMMON/UTIL
Robert Schmidt e94f59edb1 IES_DECODE_U16 macro: load from 16-bit aligned address
The IES_DECODE_U16 macro loads a 16 bit integer from an arbitrary
address; this can lead to reads from misaligned addresses, and undefined
behavior sanitizer warns, like, e.g., so:

    openair3/NAS/COMMON/IES/ProtocolConfigurationOptions.c:62:5: runtime error: load of misaligned address 0x7f3c24032c01 for type 'uint16_t', which requires 2 byte alignment

To fix this, first use memcpy() to load to a 16-bit aligned address,
then do the actual decoding.
2024-10-22 11:05:20 +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