Missing NULL check after calling ecpg_strdup - Mailing list pgsql-hackers

From Evgeniy Gorbanev
Subject Missing NULL check after calling ecpg_strdup
Date
Msg-id a6b193c1-6994-4d9c-9059-aca4aaf41ddd@basealt.ru
Whole thread Raw
Responses Re: Missing NULL check after calling ecpg_strdup
List pgsql-hackers
Hi!

In case of out_of_memory, the ecpg_strdup function may return NULL.
Checks should be added in src/interfaces/ecpg/ecpglib/execute.c.
Patch attached.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

--
Best regards,
Evgeniy  Gorbanev

Attachment

pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: Logical replication prefetch
Next
From: Mircea Cadariu
Date:
Subject: Re: analyze-in-stages post upgrade questions