Displaying 2 results from an estimated 2 matches for "reportandcrash".
2012 Sep 26
1
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...= 0x1F, all bits set: unallocated
shadow part: 0-7, same encoding as original.
== Original instrumentation code (ASan USENIX2012 paper) ==
* All instrumented code:
ShadowAddr = (Addr >> 3) + offset;
k = *ShadowAddr;
if (k != 0 && (Addr & 7) + AccessSize > k)
ReportAndCrash(Addr);
== Concept code (code blowup, though) ==
ShadowAddr = (Addr >> 3) + offset;
k = *ShadowAddr;
alloc_id = k >> 3;
shadow = k & 0x0F;
* Thread/plugin code:
if (alloc_id != my_short_id || // alloc belongs to other thread
shadow && (Addr & 7) + Acce...
2012 Sep 26
0
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...-7, same encoding as original.
>
>
> == Original instrumentation code (ASan USENIX2012 paper) ==
>
> * All instrumented code:
>
> ShadowAddr = (Addr >> 3) + offset;
> k = *ShadowAddr;
>
> if (k != 0 && (Addr & 7) + AccessSize > k)
> ReportAndCrash(Addr);
>
> == Concept code (code blowup, though) ==
>
> ShadowAddr = (Addr >> 3) + offset;
> k = *ShadowAddr;
> alloc_id = k >> 3;
> shadow = k & 0x0F;
>
> * Thread/plugin code:
>
> if (alloc_id != my_short_id || // alloc belongs to other t...