Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()

From: didier <did447(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()
Date: 2019-05-24 07:40:36
Message-ID: CAJRYxu+j8MLYqyzM+Pjy-qZ9tUUkofvXj=gWdFS-t2QM+YtpEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
Remove_redundant_memset_v1.patch text/x-patch 423 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kato, Sho 2019-05-24 07:44:18 Why does not subquery pruning conditions inherit to parent query?
Previous Message David Rowley 2019-05-24 07:20:35 Re: Aggregate error message