This function dereferences a null pointer, which causes an access violation and is used to invoke the previously set vectored exception handlers.
()
| 317 | /// This function dereferences a null pointer, which causes an access violation and is used to |
| 318 | /// invoke the previously set vectored exception handlers. |
| 319 | fn trigger_access_violation_exception() { |
| 320 | unsafe { |
| 321 | let a: *mut i32 = 0 as *mut i32; |
| 322 | let _b = *a; |
| 323 | } |
| 324 | } |