Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c)
Date
Msg-id CAEudQAoOZ3MH4URdnZWD2tAVRsQvN=9=JuMsOj97GgDaqbkq0Q@mail.gmail.com
Whole thread Raw
Responses Re: Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c)
List pgsql-hackers
Hi.

The function *ScanPgRelation* can return a invalid tuple.
It is necessary to check the function's return, 
as is already done in other parts of the source.

patch attached.

Best regards,
Ranier Vilela

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pglogical3 : support
Next
From: Tomas Vondra
Date:
Subject: Re: Amcheck verification of GiST and GIN