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

From didier
Subject Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()
Date
Msg-id CAJRYxu+j8MLYqyzM+Pjy-qZ9tUUkofvXj=gWdFS-t2QM+YtpEA@mail.gmail.com
Whole thread Raw
In response to Re: Small fix: avoid passing null pointers to memcpy()  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi
A smaller version removing memset in print_aligned_text function.
The line is redundant , header_done isn't used yet and it's either
pg_malloc0 or null.

Without this patch make check fails 3 tests if pg is compiled with
-fsanitize=address,undefined

Attachment

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Aggregate error message
Next
From: "Kato, Sho"
Date:
Subject: Why does not subquery pruning conditions inherit to parent query?