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 1oQqya-0000rO-Pf for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 14:03:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQqyZ-0007rT-KB for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 14:03:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQqyZ-0007rK-B7 for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 14:03:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQqyX-0004U4-9c for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 14:03:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27OE3GmD1014605; Wed, 24 Aug 2022 10:03:16 -0400 From: Tom Lane To: Richard Guo cc: Alvaro Herrera , mahendrakar s , =?UTF-8?B?0JXQs9C+0YAg0KfQuNC90LTRj9GB0LrQuNC9?= , PostgreSQL Hackers Subject: Re: Stack overflow issue In-reply-to: References: <20220824104953.zxmciclbdn3dnb2g@alvherre.pgsql> Comments: In-reply-to Richard Guo message dated "Wed, 24 Aug 2022 19:54:36 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1014603.1661349796.1@sss.pgh.pa.us> Date: Wed, 24 Aug 2022 10:03:16 -0400 Message-ID: <1014604.1661349796@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > Attached adds the checks in these places. But I'm not sure about the > snowball case. Can we edit src/backend/snowball/libstemmer/*.c directly? No, that file is generated code, as it says right at the top. I think most likely we should report this to Snowball upstream and see what they think is an appropriate fix. regards, tom lane