F1AP lib: don't crash on malformed list items and extensions #753
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.41) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 189 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.314
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #753"
general
weight: 0.35
antcybersec
Partially addresses #472, #117, and #120.
Fixes crashes reported in the #472 reproducer suite within the F1AP codec library (
openair2/F1AP/lib):value.present = NOTHINGon unexpected IDs. The decoders were reading these unverified structures directly (e.g. reading PLMN IDs through NULL pointers). We now validate the IE ID and type before decoding, matching the pattern already used in the UE context lists (#472 M01, M02, M03).read_slice_info()and RRC Version decoding assumed the first extension inlist.array[0]was the expected IE. Other legal extensions (or unknown ones) caused aDevAssertor NULL dereference. We now scan the extension list for the matching ID and ignore unrelated extensions (#472 A29, A31, M04).decode_up_tnl()asserted 32-bit addresses for transport layer addresses (BIT STRING (SIZE(1..160))), aborting when receiving legal IPv6 addresses. We now return an error so the caller can cleanly reject the message (#120, #472 A30).Testing:
Extended
f1ap_lib_testwith regression test cases covering the 7 crash PDUs from #472 plus 2 synthetic malformed list PDUs. Ondevelopthe test immediately segfaults (exit code 139); with this branch all tests pass cleanly under both default and ASan builds.