[PATCH] D97239: [profile] Fix buffer overrun when parsing %c in filename string
Dave Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 24 14:46:43 PST 2021
kastiglione added inline comments.
================
Comment at: compiler-rt/lib/profile/InstrProfilingFile.c:707
+ assert(Idx <= Strlen && "Indexing past string null terminator");
+ return Idx <= Strlen;
+}
----------------
oh shouldn't these be `Idx < Strlen`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97239/new/
https://reviews.llvm.org/D97239
More information about the llvm-commits
mailing list