Commit 0f10432
security: Replace std::system() with safe subprocess execution
- Replace std::system() calls with fork/exec pattern
- Add executeCommand() method using fork/exec for safe command execution
- Eliminate security vulnerabilities flagged by CI analysis
- Maintain same functionality with proper process isolation
- Add necessary system includes for fork/exec operations
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 988462e commit 0f10432
2 files changed
+42
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
99 | 134 | | |
100 | 135 | | |
101 | 136 | | |
| |||
802 | 837 | | |
803 | 838 | | |
804 | 839 | | |
805 | | - | |
806 | | - | |
| 840 | + | |
| 841 | + | |
807 | 842 | | |
808 | 843 | | |
809 | 844 | | |
| |||
813 | 848 | | |
814 | 849 | | |
815 | 850 | | |
816 | | - | |
817 | | - | |
| 851 | + | |
| 852 | + | |
818 | 853 | | |
819 | 854 | | |
820 | 855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
0 commit comments