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

2016-08-03 Thread Peter Eisentraut
On 4/16/16 8:48 AM, Piotr Stefaniak wrote: > On 2016-04-03 09:24, Piotr Stefaniak wrote: >> > 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 des

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

2016-05-03 Thread Piotr Stefaniak
Added a fix for src/backend/storage/ipc/shm_mq.c:shm_mq_receive. commit 936c7268b61460deb201b9e6bbfb60ab5258ec87 Author: Piotr Stefaniak Date: Thu Apr 28 18:35:43 2016 +0200 Don't pass null pointers to functions that require the pointers to be non null. diff --git a/contrib/pgcrypto/px.c

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

2016-04-16 Thread Piotr Stefaniak
On 2016-04-03 09:24, Piotr Stefaniak wrote: 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. Patch updated. Since this ti

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

2016-04-03 Thread Piotr Stefaniak
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. diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c index