Support high-entropy 64-bit ASLR

From RAD Studio
Jump to: navigation, search

Go Up to Delphi Compiler Directives (List) Index

Type

Switch

Syntax

{$HIGHENTROPYVA ON}, {$HIGHENTROPYVA OFF}

Default

{$HIGHENTROPYVA ON}

Scope

Global


Remarks

Enabling the flag {$HIGHENTROPYVA} provides secure protection against attacks based on buffer overrun. Enable this flag to prevent attacks in memory-corruption vulnerabilities by enabling ASLR to randomly arrange the address space positions for the stack, heap, libraries, and key data areas of a process.

Note: To enable the {$HIGHENTROPYVA} flag, first you must enable {$LARGEADDRESSAWARE} and {$DYNAMICBASE}.
Note: {$HIGHENTROPYVA} is only available for 64-bit Windows.

Delphi 11.2 expands ASLR support for the Win64 platform. It adds the ability to randomize memory addresses at high locations. This makes 64-bit applications really take advantage of the full address space.

Note: This configuration might require you to clean up some of your code according to 64-bit rules.

See Also