From: Andreas Seltenreich <seltenreich@gmx.de>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [sqlsmith] Crash on GUC serialization
Date: Sat, 19 Nov 2016 18:51:52 +0100
Message-ID: <87oa1b73yf.fsf@credativ.de> (raw)
In-Reply-To: <CAB7nPqRdpG_WuVTwpp6=b0wEDPki7hPX+iLwKf9e4Q-iEj0APQ@mail.gmail.com>
References: <871sy78wno.fsf@credativ.de>
<2655.1479576672@sss.pgh.pa.us>
<CAB7nPqRdpG_WuVTwpp6=b0wEDPki7hPX+iLwKf9e4Q-iEj0APQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier writes:
> [2. text/plain; fix-guc-string-eval.patch]
I'm afraid taking care of the length computation is not sufficient.
ISTM like it'll still try to serialize the NULL pointer later on in
serialize_variable:
,----[ guc.c:9108 ]
| case PGC_STRING:
| {
| struct config_string *conf = (struct config_string *) gconf;
| do_serialize(destptr, maxbytes, "%s", *conf->variable);
`----
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: seltenreich@gmx.de, michael.paquier@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: [sqlsmith] Crash on GUC serialization
In-Reply-To: <87oa1b73yf.fsf@credativ.de>
References: <871sy78wno.fsf@credativ.de> <2655.1479576672@sss.pgh.pa.us> <CAB7nPqRdpG_WuVTwpp6=b0wEDPki7hPX+iLwKf9e4Q-iEj0APQ@mail.gmail.com> <87oa1b73yf.fsf@credativ.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox