Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c89U4-0006bv-7J for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:31:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c89U3-0001eh-On for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:31:23 +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 1c89U3-0001eT-7r for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:31:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c89U0-0008Em-LN for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:31:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAJHVDAk002656; Sat, 19 Nov 2016 12:31:13 -0500 From: Tom Lane To: Andreas Seltenreich cc: pgsql-hackers@postgresql.org Subject: Re: [sqlsmith] Crash on GUC serialization In-reply-to: <871sy78wno.fsf@credativ.de> References: <871sy78wno.fsf@credativ.de> Comments: In-reply-to Andreas Seltenreich message dated "Sat, 19 Nov 2016 13:46:35 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2654.1479576672.1@sss.pgh.pa.us> Date: Sat, 19 Nov 2016 12:31:12 -0500 Message-ID: <2655.1479576672@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Andreas Seltenreich writes: > sqlsmith just made a GUC that tricks the serialization code into > dereferencing a nullpointer. Here's a recipe: Thanks for the report! Looks like the serialization code has overlooked the fact that string-valued GUCs can be NULL. Surprising we didn't find that before ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers