[all-commits] [llvm/llvm-project] b10565: [Sample Profile Reader] Fix potential integer over...
William Junda Huang via All-commits
all-commits at lists.llvm.org
Tue Aug 23 13:37:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b105656207143001b2daa8ce4d2cbc09bcc9cf91
https://github.com/llvm/llvm-project/commit/b105656207143001b2daa8ce4d2cbc09bcc9cf91
Author: William Huang <williamjhuang at google.com>
Date: 2022-08-23 (Tue, 23 Aug 2022)
Changed paths:
M llvm/lib/ProfileData/SampleProfReader.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list