[startup] Report when NtQuerySystemInformation buffer is resized too many times.
With this CL, if the buffer passed to NtQuerySystemInformation requests a large buffer size more than twice, the startup temperature is set to UNDETERMINED. Previously, we read the content of the empty buffer (according to https://docs.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntquerysysteminformation, the buffer is not filled if its size is insufficient). Bug: 1085716 Change-Id: I5c7b642cf17d8de0655c0e926e6e5f063d1f0cb3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518943Reviewed-by:Gabriel Charette <gab@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#824423}
Showing
Please register or sign in to comment