Repository navigation
Commit e3800f6
authored
fix(code-placeholders): reject arithmetic comparisons and heredoc operands (#8760)
* fix(code-placeholders): harden shell placeholder interpolation in arithmetic contexts
* fix(code-placeholders): keep integer attributes across re-declaration and unset -f, guard shell values against subscript expansions
* fix(code-placeholders): end assignment-value scope at the word, carry attributes into heredoc bodies
* fix(code-placeholders): treat a declaration as pending inside its own command's expansions
* fix(code-placeholders): narrow arithmetic guards and preserve literal data
* fix(code-placeholders): skip continued newlines before comparison operands
* fix(code-placeholders): preserve command scope across process substitutions1 parent b6861b3 commit e3800f6
4 files changed
Lines changed: 512 additions & 139 deletions
File tree
- .github/workflows
- apps/sim
- lib/execution/code-placeholders
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
617 | 633 | | |
618 | 634 | | |
619 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
| 330 | + | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
0 commit comments