Merge "[soong] Zero and pattern initialization of heap memory."
This commit is contained in:
@@ -49,6 +49,14 @@ type variableProperties struct {
|
|||||||
Exclude_static_libs []string `android:"arch_variant"`
|
Exclude_static_libs []string `android:"arch_variant"`
|
||||||
} `android:"arch_variant"`
|
} `android:"arch_variant"`
|
||||||
|
|
||||||
|
Malloc_zero_contents struct {
|
||||||
|
Cflags []string `android:"arch_variant"`
|
||||||
|
} `android:"arch_variant"`
|
||||||
|
|
||||||
|
Malloc_pattern_fill_contents struct {
|
||||||
|
Cflags []string `android:"arch_variant"`
|
||||||
|
} `android:"arch_variant"`
|
||||||
|
|
||||||
Safestack struct {
|
Safestack struct {
|
||||||
Cflags []string `android:"arch_variant"`
|
Cflags []string `android:"arch_variant"`
|
||||||
} `android:"arch_variant"`
|
} `android:"arch_variant"`
|
||||||
@@ -210,6 +218,8 @@ type productVariables struct {
|
|||||||
Unbundled_build *bool `json:",omitempty"`
|
Unbundled_build *bool `json:",omitempty"`
|
||||||
Unbundled_build_sdks_from_source *bool `json:",omitempty"`
|
Unbundled_build_sdks_from_source *bool `json:",omitempty"`
|
||||||
Malloc_not_svelte *bool `json:",omitempty"`
|
Malloc_not_svelte *bool `json:",omitempty"`
|
||||||
|
Malloc_zero_contents *bool `json:",omitempty"`
|
||||||
|
Malloc_pattern_fill_contents *bool `json:",omitempty"`
|
||||||
Safestack *bool `json:",omitempty"`
|
Safestack *bool `json:",omitempty"`
|
||||||
HostStaticBinaries *bool `json:",omitempty"`
|
HostStaticBinaries *bool `json:",omitempty"`
|
||||||
Binder32bit *bool `json:",omitempty"`
|
Binder32bit *bool `json:",omitempty"`
|
||||||
@@ -376,8 +386,10 @@ func (v *productVariables) SetDefaultConfig() {
|
|||||||
AAPTCharacteristics: stringPtr("nosdcard"),
|
AAPTCharacteristics: stringPtr("nosdcard"),
|
||||||
AAPTPrebuiltDPI: []string{"xhdpi", "xxhdpi"},
|
AAPTPrebuiltDPI: []string{"xhdpi", "xxhdpi"},
|
||||||
|
|
||||||
Malloc_not_svelte: boolPtr(true),
|
Malloc_not_svelte: boolPtr(true),
|
||||||
Safestack: boolPtr(false),
|
Malloc_zero_contents: boolPtr(false),
|
||||||
|
Malloc_pattern_fill_contents: boolPtr(false),
|
||||||
|
Safestack: boolPtr(false),
|
||||||
}
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "linux" {
|
if runtime.GOOS == "linux" {
|
||||||
|
Reference in New Issue
Block a user