Repository navigation
fix: Enhance command execution security and robustness - #439
Conversation
Replaced direct `system()` calls with `QProcess`-based execution in `application/utils.cpp` and `opsLogViewerService/opslogexport.cpp`. Introduced `executCmd`, `parseCombinedArgString`, `appendToFile`, `grepA`, `appendToFileWithGrepA`, `getPhysicalInterfaces`, and `expandPathWithWildcardIterator` for safer and more flexible command and file operations. This mitigates shell injection risks and improves handling of command arguments and wildcard paths. Task: https://pms.uniontech.com/task-view-381443.html
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LiHua000, max-lvs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
|
This pr cannot be merged! (status: unstable) |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
7127f13
into
linuxdeepin:release/eagle
deepin pr auto reviewGit Diff 代码审查报告总体概述本次代码变更主要进行了以下重构:
详细审查意见1. 语法和逻辑问题1.1
|
cherry-pick 2 commits to :
remove useless code and Enhance command execution security and robustness
bugs: https://pms.uniontech.com/bug-view-350769.html