Skip to main content

drwrap_global_flags_t_DRWRAP_SAFE_READ_RETADDR

Constant drwrap_global_flags_t_DRWRAP_SAFE_READ_RETADDR 

Source
pub const drwrap_global_flags_t_DRWRAP_SAFE_READ_RETADDR: drwrap_global_flags_t = 1;
Expand description

By default the return address is read directly. A more conservative and safe approach would use a safe read to avoid crashing when the stack is unsafe to access. This flag will cause the return address to be read safely. If any call to drwrap_set_global_flags() sets this flag, no later call can remove it.