osd: guard max_element end() deref in get_health_metrics
slow_op_pools can be empty (all poolids 0/out-of-range) while slow_op_types is not, making max_element return end(); dereferencing it is UB. Fixes: https://tracker.ceph.com/issues/78184 Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
S
Sun Yuechi committed
068b27cac8c92fc776b44a8d1ed7b97bc2e91283
Parent: a5590d9
Committed by Kefu Chai <k.chai@proxmox.com>
on 7/13/2026, 12:10:42 PM