[Mojo] Use handle vector size instead of serialised size field for metrics
Since num_handles() is read from the serialised message, if the message is invalid for some reason, num_handles() could be either invalid or result in an out-of-bounds memory access. Bug: 1110302, 1110432 Change-Id: Ia63e78a4131310e1febd87186044dbfe1348fb7d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2326553Reviewed-by:Ken Rockot <rockot@google.com> Commit-Queue: Anand K Mistry <amistry@chromium.org> Cr-Commit-Position: refs/heads/master@{#793538}
Showing
Please register or sign in to comment