mirror of
https://github.com/open5gs/open5gs.git
synced 2026-08-18 21:03:59 +00:00
Validate the remaining block size before reading TLV headers or advancing over their values. Reject truncated headers, values extending beyond the input block, and zero-length embedded blocks before any out-of-bounds access. Apply the same validation to descriptor-based and fixed-length TLV parsing. Also avoid passing an uninitialized stack buffer to the logger when hexdumping a zero-length input. Add tests for truncated headers, trailing octets, over-long values, fixed-length TV elements, and descriptor-based parsing. |
||
|---|---|---|
| .. | ||
| abts-main.c | ||
| conv-test.c | ||
| fsm-test.c | ||
| hash-test.c | ||
| list-test.c | ||
| log-test.c | ||
| memory-test.c | ||
| meson.build | ||
| pkbuf-test.c | ||
| poll-test.c | ||
| pool-test.c | ||
| queue-test.c | ||
| rbtree-test.c | ||
| socket-test.c | ||
| strings-test.c | ||
| thread-test.c | ||
| time-test.c | ||
| timer-test.c | ||
| tlv-test.c | ||
| uuid-test.c | ||