Small fix: avoid passing null pointers to memcpy() - Mailing list pgsql-hackers

From Piotr Stefaniak
Subject Small fix: avoid passing null pointers to memcpy()
Date
Msg-id BLU436-SMTP8256702947EF27D3AD76E3F29C0@phx.gbl
Whole thread Raw
Responses Re: Small fix: avoid passing null pointers to memcpy()  (Piotr Stefaniak <postgres@piotr-stefaniak.me>)
List pgsql-hackers
Hello,

from running the regression test suite (including TAP tests) and also
sqlsmith, I've got a couple of places where UBSan reported calls to
memcpy() with null pointer passed as either source or destination.

Patch attached.

Attachment

pgsql-hackers by date:

Previous
From: Alex Shulgin
Date:
Subject: Re: More stable query plans via more predictable column statistics
Next
From: Simon Riggs
Date:
Subject: Re: pgbench more operators & functions