Repository navigation
Commit 63ae555
fix(analyzer): keep quoted-expansion ownership local to a committed parse
A parse that starts inside a comment can close a double quote on the next
line and record the real command there as quote-enclosed. When that parse
was later discarded or confined to the comment, the record stayed, and the
command's own operand scan stopped at its first quote, so `$CMD"" -rf /`
was reported as completely inspected. Collect the positions per candidate
and commit them only under the gate that already protects owned word
positions.
Reported-by: yashrajp22
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliottwaves-20 <[email protected]>1 parent 8c8f43a commit 63ae555
2 files changed
Lines changed: 34 additions & 1 deletion
File tree
- src/skillspector/nodes/analyzers
- tests/nodes/analyzers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1997 | 1997 | | |
1998 | 1998 | | |
1999 | 1999 | | |
| 2000 | + | |
2000 | 2001 | | |
2001 | 2002 | | |
2002 | 2003 | | |
| |||
2012 | 2013 | | |
2013 | 2014 | | |
2014 | 2015 | | |
2015 | | - | |
| 2016 | + | |
2016 | 2017 | | |
2017 | 2018 | | |
2018 | 2019 | | |
| |||
2069 | 2070 | | |
2070 | 2071 | | |
2071 | 2072 | | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2072 | 2077 | | |
2073 | 2078 | | |
2074 | 2079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
0 commit comments