Skip to content

Commit 2dc699f

Browse files
committed
Merge branch 'sync/upstream-13m2-20261108' into sync/upstream-13n-20261108
Brings the cppcheck null-guard fix for the tree RSS probe into 13N.
2 parents fe234b2 + f2b0dae commit 2dc699f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/foundation/subprocess.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,10 @@ static cbm_proc_tree_rss_status_t cbm_subprocess_tree_rss_platform(cbm_subproces
948948
cbm_free(CBM_MEM_CLASS_OTHER, procs);
949949
return CBM_PROC_TREE_RSS_ERROR;
950950
}
951+
if (!procs || count == 0) {
952+
cbm_free(CBM_MEM_CLASS_OTHER, procs);
953+
return CBM_PROC_TREE_RSS_EMPTY;
954+
}
951955

952956
cbm_linux_probe_mark_tree(procs, count, process->pgid);
953957
uint64_t total = 0;

0 commit comments

Comments
 (0)