CVE-2025-53010: Cpp Unchecked Getoutput Push
Directly passing the result of `getOutput` to a container insertion method like `push_back` without checking for null can lead to a null pointer dereference later when the container elements are accessed. Assign the return value to a variable and verify it is not null before inserting.
Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0cpp
greprules fetch cve-2025-53010-cpp-unchecked-getoutput-push --engine opengrepDescription
Directly passing the result of `getOutput` to a container insertion method like `push_back` without checking for null can lead to a null pointer dereference later when the container elements are accessed. Assign the return value to a variable and verify it is not null before inserting.
Detection target
Not provided
Recommended fix
Not provided
False-positive notes
Not provided
Community feedback
Sign in to report false positives, mark this rule useful, or suggest metadata improvements.