Skip to content

Conversation

bartonjs
Copy link
Member

@bartonjs bartonjs commented Oct 2, 2025

No description provided.

@bartonjs bartonjs self-assigned this Oct 2, 2025
@Copilot Copilot AI review requested due to automatic review settings October 2, 2025 23:52
@bartonjs bartonjs requested review from vcsjones and agocke October 2, 2025 23:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a pointer scope issue by moving the declaration of a stack-allocated string and PKCS12 export parameters struct outside of a conditional block to ensure the pointer remains valid throughout its usage scope.

  • Moved stack allocation of algorithm string and struct initialization outside conditional block
  • Replaced local variable reference with the outer-scoped variable reference
  • Ensured pointer validity by expanding the lexical scope of the target data

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

…/Cryptography/X509Certificates/StorePal.Windows.Export.cs

Co-authored-by: Jan Kotas <[email protected]>
@bartonjs bartonjs merged commit d6adddf into dotnet:main Oct 3, 2025
82 of 86 checks passed
@bartonjs
Copy link
Member Author

bartonjs commented Oct 3, 2025

/backport to release/10.0

@bartonjs bartonjs deleted the pointer_lifetime branch October 3, 2025 21:18
Copy link
Contributor

github-actions bot commented Oct 3, 2025

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18234052838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants