What problem does it solve?
This skill helps you proactively find security and robustness issues in OpenHarmony dsoftbus C/C++ code, with emphasis on safe pointer/memory/lock handling and preventing sensitive information from leaking through logs.
Core Features & Use Cases
- Comprehensive security rule-based code review: Applies 40+ safety rules across pointer safety, memory management, lock management, fd handling, integer/loop correctness, permission checks, and external input validation.
- Cross-file calling and control-flow analysis: Traces call chains, resource/data flows across files, and analyzes execution paths to uncover path-sensitive defects.
- Actionable, read-only reporting: Produces a detailed review report with fix suggestions in the report only, without modifying source files.
Use case example: When you review a suspicious dsoftbus module change that touches IPC, threading, and memory allocations, you can run this skill to generate a structured report highlighting high-risk vulnerabilities such as null dereferences, lock leaks, buffer/array misuse, sensitive log output, and unsafe return/log patterns.
Quick Start
Ask your AI assistant: 软总线安全卫士 请审查这个目录:<your dsoftbus code path>(会生成只读安全检视报告,并覆盖跨文件调用与控制流分析)。