Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sample Profile Reader] Fix potential integer overflow/infinite loop …
…bug in sample profile reader Change loop induction variable type to match the type of "SIZE" where it's compared against, to prevent infinite loop caused by overflow wraparound if there are more than 2^32 samples Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D132493
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters