Skip to content

[internal/wclayer]: harden reset dir-state cleanup - #2788

Merged
anmaxvl merged 1 commit into
microsoft:mainfrom
anmaxvl:harden-currentisdir-reset
Jun 25, 2026
Merged

[internal/wclayer]: harden reset dir-state cleanup#2788
anmaxvl merged 1 commit into
microsoft:mainfrom
anmaxvl:harden-currentisdir-reset

Conversation

@anmaxvl

@anmaxvl anmaxvl commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Address follow-up review feedback by making reset robust when currentIsDir is true while currentFile is nil.

  • Always clear currentIsDir in deferred cleanup (outside currentFile nil-check)
  • Guard the directory stream handling path with currentFile != nil
  • Add regression test for currentIsDir=true/currentFile=nil state

@anmaxvl
anmaxvl requested a review from a team as a code owner June 23, 2026 05:01
Address follow-up review feedback by making reset robust when
currentIsDir is true while currentFile is nil.

- Always clear currentIsDir in deferred cleanup (outside
currentFile nil-check)
- Guard the directory stream handling path with currentFile != nil
- Add regression test for currentIsDir=true/currentFile=nil state

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl
anmaxvl force-pushed the harden-currentisdir-reset branch from 8b2998c to cc76a69 Compare June 23, 2026 05:07
@msscotb msscotb assigned jterry75 and rawahars and unassigned msscotb and helsaawy Jun 24, 2026
@anmaxvl
anmaxvl merged commit ef47025 into microsoft:main Jun 25, 2026
32 of 33 checks passed
@anmaxvl
anmaxvl deleted the harden-currentisdir-reset branch June 25, 2026 05:22
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.

5 participants