Commit b2eed5e
committed
fix: block commands that exceed recursion depth
Previously, commands exceeding MAX_RECURSION_DEPTH returned null which
allowed them through. Now they are blocked with a clear reason message.
Also increases MAX_RECURSION_DEPTH from 5 to 10 to handle more deeply
nested shell wrapper commands.1 parent 54ceb94 commit b2eed5e
File tree
3 files changed
+14
-15
lines changed- src
- core/analyze
- tests
3 files changed
+14
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
652 | | - | |
| 651 | + | |
653 | 652 | | |
654 | 653 | | |
655 | 654 | | |
| |||
714 | 713 | | |
715 | 714 | | |
716 | 715 | | |
717 | | - | |
| 716 | + | |
718 | 717 | | |
719 | | - | |
| 718 | + | |
720 | 719 | | |
721 | 720 | | |
722 | | - | |
723 | | - | |
| 721 | + | |
724 | 722 | | |
725 | 723 | | |
726 | | - | |
| 724 | + | |
727 | 725 | | |
728 | | - | |
| 726 | + | |
729 | 727 | | |
730 | 728 | | |
731 | | - | |
732 | | - | |
733 | | - | |
| 729 | + | |
734 | 730 | | |
735 | 731 | | |
736 | 732 | | |
| |||
0 commit comments