Skip to content

Commit

Permalink
Make util::gerlimit compatible with MSAN
Browse files Browse the repository at this point in the history
  • Loading branch information
happyCoder92 committed Nov 28, 2023
1 parent 3d9a5b2 commit 23a1b85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 23a1b85

Please sign in to comment.