mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Decode the FGC NAS message container length from the encoded 2-octet field before validating and copying the payload. This matches TS 24.501, where the NAS message container is a type 6 TLV and its length is carried in octets 2-3. Changes: - add `<arpa/inet.h>` for `ntohs` - change `ielen` from `uint8_t` to `uint16_t` in `decode_fgc_nas_message_container()` - read the encoded length with `memcpy`, convert it from network byte order, and advance the decode pointer by `sizeof(uint16_t)` Refs: - TS 124 501 clause 9.11.3.33 "NAS message container" Signed-off-by: Guido Casati <guido.casati@openairinterface.org>