mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-03 05:23:38 +00:00
[TLV] PFCP parser crash from FuzzingLabs (#2523)
This commit is contained in:
@@ -750,7 +750,10 @@ int ogs_tlv_parse_msg(void *msg, ogs_tlv_desc_t *desc, ogs_pkbuf_t *pkbuf,
|
||||
ogs_assert(pkbuf);
|
||||
|
||||
ogs_assert(desc->ctype == OGS_TLV_MESSAGE);
|
||||
ogs_assert(desc->child_descs[0]);
|
||||
if (!desc->child_descs[0]) {
|
||||
ogs_fatal("No Child Descs in [%s]", desc->name);
|
||||
ogs_assert_if_reached();
|
||||
}
|
||||
|
||||
root = ogs_tlv_parse_block(pkbuf->len, pkbuf->data, mode);
|
||||
if (root == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user