Hi, All shadow memory is zero at start-up (zero means "valid"). When a memory is allocated (by malloc, or by a stack frame), the shadow for the redzones are marked as invalid. When a memory is de-allocated, the corresponding shadow is marked as invalid.
hth, --kcc On Thu, May 3, 2018 at 2:54 AM Harshith H <[email protected]> wrote: > How is the value for shadow memory computed on start up of application ? > which is then checked by instrumentation code > > -- > You received this message because you are subscribed to the Google Groups > "address-sanitizer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "address-sanitizer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
