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
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: Corey Huinker
Date:
Subject: Re: Allow pg_dump --statistics-only to dump foreign table statistics?
Next
From: Tomas Vondra
Date:
Subject: Re: No error checking when reading from file using zstd in pg_dump