Skip to content

Fix a TOCTOU FileNotFoundError possibility - #1444

Merged
kurtmckee merged 1 commit into
mainfrom
fix-a-toctou-problem
Nov 6, 2026
Merged

kurtmckee merged 1 commit into
mainfrom
fix-a-toctou-problem

Conversation

@kurtmckee

Copy link
Copy Markdown
Member

Fixed

  • LocalGlobusConnectServer.info_dict can no longer raise FileNotFoundError
    if the info.json file is removed while it is being loaded. (:pr:NUMBER)

@kurtmckee
kurtmckee force-pushed the fix-a-toctou-problem branch from d59e501 to bba90f2 Compare November 6, 2026 21:12
@codspeed

codspeed Bot commented Nov 6, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 15.07%

1 warning

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
✅ 17 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_deeply_nested_object_encoding[5w-1d] 173 µs 150.3 µs +15.07%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix-a-toctou-problem (bba90f2) with main (9f5191a)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (c7e83bb) during the generation of this report, so 9f5191a was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@sirosen sirosen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm disappointed that codspeed seems to be confused again, but I'm hoping that's due to some runner changes and will dissipate. Awesome little fix!

@kurtmckee
kurtmckee merged commit b7641e3 into main Nov 6, 2026
12 checks passed
@kurtmckee
kurtmckee deleted the fix-a-toctou-problem branch November 6, 2026 22:52
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.

2 participants