Mark, PTAL, thank you!
The code crashes when Omaha is tearing down at `removed += metadata->CleanDatabase();` because the `metadata` is nullptr.
```
0:003> dv
this = 0x00000000`00000000
```
```
`0:003> kc
*** Stack trace for last set context - .thread/.cxr resets it
# Call Site
00 updater!std::__Cr::vector<crashpad::(anonymous namespace)::ReportDisk,std::__Cr::allocator<crashpad::(anonymous namespace)::ReportDisk> >::begin
01 updater!crashpad::`anonymous namespace'::Metadata::CleanDatabase
02 updater!crashpad::CrashReportDatabaseWin::CleanDatabase
03 updater!crashpad::PruneCrashReportThread::DoWork
04 updater!crashpad::internal::WorkerThreadImpl::ThreadMain
05 updater!crashpad::Thread::ThreadEntryThunk
06 kernel32!BaseThreadInitThunk
07 ntdll!RtlUserThreadStart
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM otherwise
crashpad: fix nullptr reference in CleanDatabase()In the Crashpad repository, a “crashpad:” prefix doesn’t make any sense.
The crash affects only the Windows database, so you could write “win:” or nothing at all.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |