← Back to Pull requests

lib/crypt.c: Do not overwrite the output buffer too early. #210

Merged
besser82 merged 8 files (467 lines) on Nov 04, 2025 11:51 UTC
View on GitHub
besser82 besser82 commented on Apr 11, 2025 09:41 UTC
Author

Allow passing a pointer returned by crypt(3) previously as the input for a subsequent call to crypt(3), adapt the manpage accordingly, and implement a simple testcase for such a scenario. This also applies to the other variants of the crypt function, when the same data object is used for subsequent calls.

Alter the resize process of the data object by crypt_ra(3), to keep the literals passed with the phrase and the setting parameter during the runtime of the function, if those are stored within the initially passed data object.

Also apply the same semantics to the crypt_gensalt(3) function family, and the internally used make_failure_token() helper.

Fixes #209.

Diff: 467 lines (+427 / -40) across 8 files Reviewer: solardiz Review duration: 298209m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.50) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 467 lines diff across 8 files
0.50
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
0.35
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
67%
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.368
Real PR Conversation Timeline
1 comments
"Review active on #210"
general weight: 0.35
Reviewers
Assignees
besser82 besser82
Labels
risk: low confidence: 67.5% 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: 50% (MEDIUM) · Higher = larger blast radius
50%
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: 67.5% · Lower = rushed or shallow review
67.5%
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: 16.3% · Safe to merge
16.3%