metrics/perf: Fix crash for CPU identities outside CpuUarch table
When running on a system with a CPU family/model beyond the last entry in the CpuUarch table, the CPU id to CpuUarch mapping code tries to access an invalid iterator/entry and crashes. Check for this case and return an empty CpuUarch instead. Bug: 1021000 Change-Id: I2bc19427a03c0fe6906838bdcb2134021fc213df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893200Reviewed-by:Gabriel Marin <gmx@chromium.org> Commit-Queue: Alexandros Frantzis <alexandros.frantzis@collabora.com> Cr-Commit-Position: refs/heads/master@{#712942}
Showing
Please register or sign in to comment