Dereference before NULL check (src/backend/storage/ipc/latch.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Dereference before NULL check (src/backend/storage/ipc/latch.c)
Date
Msg-id CAEudQArTPi1YBc+n1fo0Asy3QBFhVjp_QgyKG-8yksVn+yRTiw@mail.gmail.com
Whole thread Raw
Responses Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)
List pgsql-hackers
Hi,

Per Coverity.

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

regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Parallel copy
Next
From: Ranier Vilela
Date:
Subject: Explicit NULL dereference (src/backend/utils/adt/ruleutils.c)