Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZGDC-0006DP-Si for pgsql-committers@arkaria.postgresql.org; Sun, 01 Nov 2020 16:28:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kZGDB-0001OF-Ro for pgsql-committers@arkaria.postgresql.org; Sun, 01 Nov 2020 16:28:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZGCT-0007qy-Li for pgsql-committers@lists.postgresql.org; Sun, 01 Nov 2020 16:27:25 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZGCO-0000IR-7n for pgsql-committers@lists.postgresql.org; Sun, 01 Nov 2020 16:27:24 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZGCN-0003qA-KO for pgsql-committers@lists.postgresql.org; Sun, 01 Nov 2020 16:27:19 +0000 Received: from localhost ([127.0.0.1] helo=gemulon.postgresql.org) by gemulon.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kZGCL-0001PE-QU for pgsql-committers@lists.postgresql.org; Sun, 01 Nov 2020 16:27:17 +0000 Content-Type: multipart/mixed; boundary="===============3405303649789925802==" MIME-Version: 1.0 From: Tom Lane To: pgsql-committers@lists.postgresql.org Subject: pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. X-Auto-Response-Suppress: All Auto-Submitted: auto-generated Message-Id: Date: Sun, 01 Nov 2020 16:27:17 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --===============3405303649789925802== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 QXZvaWQgbnVsbCBwb2ludGVyIGRlcmVmZXJlbmNlIGlmIGVycm9yIHJlc3VsdCBsYWNrcyBTUUxT VEFURS4KCkFsdGhvdWdoIGVycm9yIHJlc3VsdHMgcmVjZWl2ZWQgZnJvbSB0aGUgYmFja2VuZCBz aG91bGQgYWx3YXlzIGhhdmUKYSBTUUxTVEFURSBmaWVsZCwgb25lcyBnZW5lcmF0ZWQgYnkgbGli cHEgd29uJ3QsIG1ha2luZyB0aGlzIGNvZGUKdnVsbmVyYWJsZSB0byBhIGNyYXNoIGFmdGVyLCBz YXksIHVudGltZWx5IGxvc3Mgb2YgY29ubmVjdGlvbi4KTm90ZWQgYnkgQ292ZXJpdHkuCgpPdmVy c2lnaHQgaW4gY29tbWl0IDQwM2EzZDkxYy4gIEJhY2stcGF0Y2ggdG8gOS41LCBhcyB0aGF0IHdh cy4KCkJyYW5jaAotLS0tLS0KbWFzdGVyCgpEZXRhaWxzCi0tLS0tLS0KaHR0cHM6Ly9naXQucG9z dGdyZXNxbC5vcmcvcGcvY29tbWl0ZGlmZi83ZjQyMzUwMzJmMGQ3NWVhMWFkMjliMTkyZDU3ZmVl M2Q4ZmU1MzNlCgpNb2RpZmllZCBGaWxlcwotLS0tLS0tLS0tLS0tLQpzcmMvYmluL3BnX2R1bXAv cGdfYmFja3VwX2RiLmMgfCAxNCArKysrKysrKy0tLS0tLQoxIGZpbGUgY2hhbmdlZCwgOCBpbnNl cnRpb25zKCspLCA2IGRlbGV0aW9ucygtKQoK --===============3405303649789925802==--