Commit 12f7a6a
committed
fix: keep redline outputs under output-dir on Windows rooted paths
Path.is_absolute() is False on Windows for a rooted-but-driveless path like
'/x/y', yet joining it onto output_dir still replaces the whole prefix, so
the escape guard never fired (caught by the new unit test on the
windows-latest CI matrix). Guard on drive/root/'..' components as well, and
cover '..' traversal in the test.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0142X9VTMpdo639kHKQa4PE11 parent 48ca443 commit 12f7a6a
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
0 commit comments