1//===-- scudo_flags.inc -----------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9/// 10/// Hardened Allocator runtime flags. 11/// 12//===----------------------------------------------------------------------===// 13 14#ifndef SCUDO_FLAG 15# error "Define SCUDO_FLAG prior to including this file!" 16#endif 17 18SCUDO_FLAG(int, QuarantineSizeMb, 64, 19 "Size (in Mb) of quarantine used to delay the actual deallocation " 20 "of chunks. Lower value may reduce memory usage but decrease the " 21 "effectiveness of the mitigation.") 22 23SCUDO_FLAG(int, ThreadLocalQuarantineSizeKb, 1024, 24 "Size (in Kb) of per-thread cache used to offload the global " 25 "quarantine. Lower value may reduce memory usage but might increase " 26 "the contention on the global quarantine.") 27 28SCUDO_FLAG(bool, DeallocationTypeMismatch, true, 29 "Report errors on malloc/delete, new/free, new/delete[], etc.") 30 31SCUDO_FLAG(bool, DeleteSizeMismatch, true, 32 "Report errors on mismatch between size of new and delete.") 33 34SCUDO_FLAG(bool, ZeroContents, false, 35 "Zero chunk contents on allocation and deallocation.") 36