Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c89o1-0007Or-M5 for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:52:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c89o0-00074Y-U1 for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:52:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c89o0-00074I-3n for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:52:00 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c89nx-0000B7-GE for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:51:59 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id C500F1B4004; Sat, 19 Nov 2016 18:51:54 +0100 (CET) Received: from ex (ip-109-44-1-187.web.vodafone.de [109.44.1.187]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ase@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 616BD1B4001; Sat, 19 Nov 2016 18:51:54 +0100 (CET) From: Andreas Seltenreich To: Michael Paquier Cc: Tom Lane , PostgreSQL mailing lists Subject: Re: [sqlsmith] Crash on GUC serialization References: <871sy78wno.fsf@credativ.de> <2655.1479576672@sss.pgh.pa.us> Date: Sat, 19 Nov 2016 18:51:52 +0100 In-Reply-To: (Michael Paquier's message of "Sat, 19 Nov 2016 09:44:23 -0800") Message-ID: <87oa1b73yf.fsf@credativ.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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