[compiler-rt] [scudo] change allocation buffer size with env var (PR #71703)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 02:04:29 PST 2023


fmayer wrote:

> Is there any problem if this value is set negative or set to a really large positive value?
> 
> I want to make sure there is no possibility that a value here can cause a segfault.

The negative value is addressed in this: https://github.com/llvm/llvm-project/pull/71791

The (too) large positive value will lead to a crash, because mmap will fail and crash (we don't pass `MAP_ALLOWNOMEM`)

https://github.com/llvm/llvm-project/pull/71703


More information about the llvm-commits mailing list