Dereference before NULL check (src/backend/storage/ipc/latch.c)

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-10-31T14:40:53Z
Lists: pgsql-hackers

Attachments

Hi,

Per Coverity.

If test set->latch against NULL, is why it can be NULL.
ResetEvent can dereference NULL.

regards,
Ranier Vilela

Commits

  1. Fix WaitLatch(NULL) on Windows.