← Back to Pull requests

vendor metadata hardening #1079

Merged
cdinea merged 2 files (241 lines) on May 19, 2026 02:21 UTC
View on GitHub
cdinea cdinea commented on May 11, 2026 05:54 UTC
Author

Harden vendor-specific TIFF metadata parsing in cuslide and cuslide2

  • Bounds-check pixel_spacings vector before access (empty vector guard + spacing_index bound)

  • Replace hardcoded +34 pointer arithmetic with bounds-checked scan for XML associated images

  • Guard against division by zero when downsample factor rounds to 0

  • Wrap std::stod/stoul in try-catch for untrusted Philips XML numeric data

  • Add string length check before std::mismatch for Aperio/Philips/Macro/Label prefix detection

  • Cap recursive XML parsing at depth 32 to prevent stack exhaustion

  • Limit Aperio SVS ImageDescription processing to 1 MB to prevent memory exhaustion
  • Diff: 241 lines (+151 / -90) across 2 files Reviewer: gigony Review duration: 11307m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.37) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 241 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.88 · 4 substantive comment(s)
    0.88
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    84%
    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
    Diff Size diff_size
    0.328
    Real PR Conversation Timeline
    6 items
    copy-pr-bot[bot] copy-pr-bot[bot] commented on May 11, 2026 05:54 UTC
    Bot

    This pull request requires additional validation before any workflows can run on NVIDIA's runners.

    Pull request vetters can view their responsibilities here.

    Contributors can view more details about this message here.

    cdinea cdinea commented on May 12, 2026 17:14 UTC
    Author

    /ok to test 59be2c7

    gigony gigony approved these changes on May 12, 2026 17:23 UTC
    Approved Reviewer

    Thanks @cdinea for addressing the issues!
    It looks good to me!

    cdinea cdinea commented on May 19, 2026 00:45 UTC
    Author

    /ok to test c38a19e

    cdinea cdinea commented on May 19, 2026 02:21 UTC
    Author

    /merge

    Reviewers
    Assignees
    cdinea cdinea
    Labels
    risk: low confidence: 84.9% 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: 37.3% (MEDIUM) · Higher = larger blast radius
    37.3%
    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: 84.9% · Lower = rushed or shallow review
    84.9%
    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: 5.7% · Safe to merge
    5.7%
    Repository