@@ -7,23 +7,6 @@ function Execute-Setup {
77# Exclude any uploaded DLL from known DLLs
88 gci- filter' *.dll' | Exclude- Library
99
10- # Update environment values for ASAN_OPTIONS.
11- # These environment variables affect how the ASan runtime operates.
12- # Use the 'allocator_may_return_null=1' environment variable if you have compiled
13- # your fuzzer using clang with the ASan flags
14- #
15- # Use 'windows_hook_rtl_allocators=true:allocator_may_return_null=1' if your fuzzer has
16- # been compiled using MSVC with the ASan flags
17- #
18- # $AsanOptions = 'windows_hook_rtl_allocators=true:allocator_may_return_null=1'
19- # $AsanOptions = 'allocator_may_return_null=1'
20-
21- $AsanOptions = ' windows_hook_rtl_allocators=true:allocator_may_return_null=1'
22-
23- # Use the 'machine' scope to make this permanent because the machine will reboot
24- [Environment ]::SetEnvironmentVariable(' ASAN_OPTIONS' , $AsanOptions , ' Machine' )
25- Write-Log " Set ASAN_OPTIONS to$AsanOptions "
26-
2710# Done. Useful to know that the script did not prematurely error out
2811Write-Log ' Setup script finished successfully'
2912}