diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-02-18 21:23:59 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-02-18 21:24:12 -0500 |
commit | 197427fb3f0bcfa0d40c92291f2dfd3ea1c167b8 (patch) | |
tree | 3d1c241ec83f4f23f30511645618f2733faaa1ad /src/backend/regex/regexec.c | |
parent | a38a7ad51ec8dc558d71806d7f1aee986723ccbc (diff) |
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.korotkov@postgrespro.ru>
Author: Maksim Korotkov <m.korotkov@postgrespro.ru>
Discussion: https://postgr.es/m/1d1a46-67ab1000-21-80c451@83151435
Backpatch-through: 13
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions