Validate memory return.
If the cleanup after a process is done twice (or more) in parallel
then a race may cause the type to change between the iteration and
the conversion to a memory address, resulting in a nullptr crash when
it tries to extract the owning process ID below.
Note that multiple cleanups is itself not desired behavior (i.e. a bug)
but it shouldn't be fatal.
Bug: 777409
Change-Id: I1759eaa406cbea13b6a1f7f606a09a9426bbe3ac
Reviewed-on: https://chromium-review.googlesource.com/733871
Commit-Queue: Brian White <bcwhite@chromium.org>
Reviewed-by: Sigurður Ásgeirsson <siggi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#511102}
CrOS-Libchrome-Original-Commit: 140c68eef1492d894ba12905ef047ce6c0625d55
1 file changed