Skip to content

Fix Windows min-macro collision in bounded TLS writes - #204

Merged
bedipritpal merged 1 commit into
FiveTechSoft:mainfrom
bedipritpal:stage6/windows-tls-min-fix
Nov 23, 2026
Merged

bedipritpal merged 1 commit into
FiveTechSoft:mainfrom
bedipritpal:stage6/windows-tls-min-fix

Conversation

@bedipritpal

Copy link
Copy Markdown
Collaborator

One-line Windows portability repair, separate from packaging.

  • Call (std::min)(...) in the bounded TLS write to avoid expansion of the Windows min macro.
  • Preserve the record bound, error handling, TLS/HTTP settings and handshake behavior. No global compiler flag or unrelated product change.
  • Credit: Pritpal Bedi.

Base: c649054
Candidate: 13e3dbc
One commit, one source file, one line changed. The fork-only review workflow is not included.

Validation: native Windows MSVC x86 and x64 full configured Release builds with TLS, HTTP and tests enabled passed. Existing CTest selection passed 11/11 on each architecture, without new exclusions. Main doctest selection: 1,822 cases / 666,928 assertions per architecture, with 28 existing exclusions. Slow selection: 4 cases / 821 assertions. The three existing SQL smoke registrations selected zero cases and are not SQL coverage.

Review run: https://github.com/bedipritpal/OpenADS/actions/runs/45054038187
Review head: 3f8d401, whose tree differs from the candidate only by the review workflow.

Not an unrestricted full-suite, full-platform-matrix, Vouch or Qt4.9.2 legacy-profile qualification. No release or packaging changes in this PR. Packaging will be validated separately on the updated parent.

@bedipritpal
bedipritpal merged commit f058b68 into FiveTechSoft:main Nov 23, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant