Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMZYe-005H9X-NF for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 20:15:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rMZYc-0006Wq-Ub for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 20:15:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMZYc-0006Wf-K5 for pgsql-bugs@lists.postgresql.org; Sun, 07 Jan 2024 20:15:42 +0000 Received: from mailg210.ethz.ch ([2001:67c:10ec:5606::21]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMZYY-000MTR-Ej for pgsql-bugs@lists.postgresql.org; Sun, 07 Jan 2024 20:15:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inf.ethz.ch; s=key1-q2-2022; t=1704658527; h=From:Subject:Date:Message-ID:To:Cc :MIME-Version:Content-Type:In-Reply-To:References; bh=mdDJJM6A0uBj9K/3RJ/ VvS2du0a7GHm/js/K5ocwg/8=; b=E5U3ZZ0F8+HqIEc8PrrotnQhr7Vu0zQk84WuPYrRSUkX 56XQh+VEtgRpwTQ2m91eKmJIRNrlbdZyR3/wdAKmwRQhtkNvzT8JRtfgCWp73N+bHdjPlLeAe +h+pxHxxs+0ZobbxF++bcjuxHJyiXV77PYxxrMMDjvyctk8riLjI9Loujl0JXZELqsbEt2uYe MTwGeT8cObw2IcojJJEUSRemC77PqVOCdZm9Im8fDDKim05JboZ0R78R18UaLSsV2n4VuBI+7 srGrXER+dzuwsbPK+/kH47YKaEmxgDOBc2+KbbS2TPtEQHj8rOI3s/+5EoprO+9/95TINjFCp 9o8IKA==; Received: from mailm211.d.ethz.ch (2001:67c:10ec:5603::25) by mailg210.ethz.ch (2001:67c:10ec:5606::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 7 Jan 2024 21:15:27 +0100 Received: from [192.168.1.35] (77.109.152.244) by mailm211.d.ethz.ch (2001:67c:10ec:5603::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 7 Jan 2024 21:15:33 +0100 Content-Type: multipart/alternative; boundary="------------I0oLln82RgYv08gQvrI6zn9R" Message-ID: Date: Sun, 7 Jan 2024 21:15:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163 Content-Language: en-US To: Tom Lane CC: References: <18276-13b98d6ec97ed5b8@postgresql.org> <1633850.1704655019@sss.pgh.pa.us> <25caa537-1add-4561-8ef9-806c46ac98ce@inf.ethz.ch> <1637353.1704656849@sss.pgh.pa.us> From: Zu-Ming Jiang In-Reply-To: <1637353.1704656849@sss.pgh.pa.us> X-Originating-IP: [77.109.152.244] X-ClientProxiedBy: mailm212.d.ethz.ch (2001:67c:10ec:5603::26) To mailm211.d.ethz.ch (2001:67c:10ec:5603::25) X-DKIM-Signer: DkimX (v3.20.320) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --------------I0oLln82RgYv08gQvrI6zn9R Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Thanks for the feedback! > It's not reasonable to expect the system to figure out the behavior > of C functions (see: halting problem). In the end this is why > creating base types is a superuser-only operation: it's possible > to crash the server with a wrong definition. I don't see any prospect > of making that meaningfully safer. I will adjust my fuzzer to avoid such issues. Best wishes, Zuming --------------I0oLln82RgYv08gQvrI6zn9R Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 7bit Thanks for the feedback!

It's not reasonable to expect the system to figure out the behavior
of C functions (see: halting problem).  In the end this is why
creating base types is a superuser-only operation: it's possible
to crash the server with a wrong definition.  I don't see any prospect
of making that meaningfully safer.

I will adjust my fuzzer to avoid such issues.

Best wishes,
Zuming


--------------I0oLln82RgYv08gQvrI6zn9R--