From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Avoid null pointer dereference crash after OOM in Snowball stemm |
Date: | 2025-02-19 02:24:19 |
Message-ID: | E1tkZl6-0003sH-36@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Avoid null pointer dereference crash after OOM in Snowball stemmers.
Absorb upstream bug fix (their commit
e322673a841d9abd69994ae8cd20e191090b6ef4), which prevents a null
pointer dereference crash if SN_create_env() gets a malloc failure
at just the wrong point.
Thanks to Maksim Korotkov for discovering the null-pointer
bug and submitting the fix to upstream snowball.
Reported-by: Maksim Korotkov <m(dot)korotkov(at)postgrespro(dot)ru>
Author: Maksim Korotkov <m(dot)korotkov(at)postgrespro(dot)ru>
Discussion: https://postgr.es/m/1d1a46-67ab1000-21-80c451@83151435
Backpatch-through: 13
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/8388cae5526b39dea40e35c14b7bc93cae5cb321
Modified Files
--------------
src/backend/snowball/libstemmer/api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2025-02-19 04:14:17 | pgsql: Invalidate inactive replication slots. |
Previous Message | Richard Guo | 2025-02-19 02:16:58 | pgsql: Fix unsafe access to BufferDescriptors |