[compiler-rt] [scudo] Clean up string handling (PR #86364)
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 12:43:06 PDT 2024
================
@@ -123,3 +127,31 @@ TEST(ScudoStringsTest, Padding) {
testAgainstLibc<int>("%03d - %03d", 12, 1234);
testAgainstLibc<int>("%03d - %03d", -12, -1234);
}
+
+#if defined(__linux__)
+#include <sys/resource.h>
+
+TEST(ScudoStringsTest, CapacityIncreaseFails) {
+ scudo::ScopedString Str;
+
+ rlimit Limit = {};
+ EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
+ rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
----------------
amy-kwan wrote:
I committed https://github.com/llvm/llvm-project/commit/685d7855acb28f89aa948e0056d2807bf30d3971 to resolve this.
https://github.com/llvm/llvm-project/pull/86364
More information about the llvm-commits
mailing list