← Back to Pull requests

[25626] Add test for nesting depth limit in type deserialization (backport #6643) #6659

Open
unknown opened this pull request with 241 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 07:32 UTC
Author

Description

Adds a regression test for a stack overflow found by OSS-Fuzz.

The fix is in Fast CDR (eProsima/Fast-CDR#356). No Fast DDS source changes are needed: the existing catch in QosPoliciesSerializer already rejects the parameter once Fast CDR throws.

Changes from this PR:

  • Adds the ClusterFuzz testcase as regressions/25626.bin.

  • Runs the regressions inputs on a thread with a 1 MiB stack (the Windows default), so the overflow reproduces on Release builds and not only under ASAN.
  • @Mergifyio backport 2.14.x

    Contributor Checklist

  • Commit messages follow the project guidelines.

  • The code follows the style guidelines of this project.

  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally

  • _N/A_ Any new/modified methods have been properly documented using Doxygen.

  • _N/A_ Any new configuration API has an equivalent XML API (with the corresponding XSD extension)

  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.

  • Changes are API compatible.

  • _N/A_ New feature has been added to the versions.md file (if applicable).

  • _N/A_ New feature has been documented/Current behavior is correctly described in the documentation.


  • Applicable backports have been included in the description.
  • Reviewer Checklist

  • The PR has a milestone assigned.

  • The title and description correctly express the PR's purpose.

  • Check contributor checklist is correct.

  • If this is a critical bug fix, backports to the critical-only supported branches have been requested.

  • Check CI results: changes do not issue any warning.

  • Check CI results: failing tests are unrelated with the changes.

  • <hr>This is an automatic backport of pull request #6643 done by Mergify.

    Diff: 241 lines (+180 / -61) across 3 files Reviewer: MiguelCompany Review duration: 898m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 241 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.328
    Real PR Conversation Timeline
    1 comments
    "Review active on #6659"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.7% · Safe to merge
    20.7%