diff options
author | happyCoder92 <wiktorg@google.com> | 2023-11-28 14:11:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 14:11:08 +0100 |
commit | 23a1b85087fee57642545662e1c413228149b024 (patch) | |
tree | aca4532957c094747f194a1a82d781adbb863560 | |
parent | 3d9a5b2307fb7f49f4e2ee844896e763b65a9605 (diff) | |
download | nsjail-23a1b85087fee57642545662e1c413228149b024.tar.gz |
Make util::gerlimit compatible with MSAN
-rw-r--r-- | util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -383,7 +383,8 @@ long setrlimit(int res, const struct rlimit64& newlim) { return util::syscall(__NR_prlimit64, 0, res, (uintptr_t)&newlim, (uintptr_t) nullptr); } -long getrlimit(int res, struct rlimit64* curlim) { +long getrlimit(int res, struct rlimit64* curlim) + *curlim = {}; return util::syscall(__NR_prlimit64, 0, res, (uintptr_t) nullptr, (uintptr_t)curlim); } |