Commit 74f3356
Reject requested O2PDPSuite tags with unsafe characters
This fixes resolve_o2pdpsuite_tag accepting a requested tag containing
path-traversal characters, and makes the harness executable like its
siblings.
- A "sim-tests-tag:" value taken from a fork PR's body could contain
"../" and select a module outside O2PDPSuite, since only -e was
checked before use.
- Added a character-class check that rejects anything but
[A-Za-z0-9._-] before the existence test.
- Added a harness case asserting a requested value of "../O2/something"
returns 1 and prints nothing on stdout.
- chmod +x test/tests/resolve_tag.sh; it was 644 while its siblings are
755. test/ci/resolve_tag.sh stays 644, since it is sourced, not run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 65ea52b commit 74f3356
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
0 commit comments