Skip to content

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

Open
anmaxvl wants to merge 1 commit into
microsoft:mainfrom
anmaxvl:harden-currentisdir-reset
Open

[internal/wclayer]: harden reset dir-state cleanup#2788
anmaxvl wants to merge 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
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.

3 participants