[clang] Avoid printing overly large integer. (PR #75902)
Nhat Nguyen via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 27 20:27:24 PST 2023
================
@@ -17132,6 +17132,10 @@ static bool ConvertAPValueToString(const APValue &V, QualType T,
case BuiltinType::WChar_U: {
unsigned TyWidth = Context.getIntWidth(T);
assert(8 <= TyWidth && TyWidth <= 32 && "Unexpected integer width");
+ if (V.getInt() > std::numeric_limits<uint64_t>::max() ||
----------------
changkhothuychung wrote:
Hi, do you have any idea where is actually the right place to fix the code? I am still looking for it, but if you have found it, it would be really appreciated!
https://github.com/llvm/llvm-project/pull/75902
More information about the cfe-commits
mailing list