pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: dict_int: Return NULL for zero-length tokens.
4+ messages / 1 participants
[nested] [flat]

* pgsql: dict_int: Return NULL for zero-length tokens.
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

dict_int: Return NULL for zero-length tokens.

dintdict_lexize() does not check for zero-length tokens before
inspecting its input, so it can read past the end of the token.  In
some cases, the returned lexeme can even contain data from well
beyond it.  To fix, return NULL for a zero-length token, as
dict_ispell, dict_synonym, and dict_xsyn already do.

Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reported-by: Anthropic OSS program
Author: Nathan Bossart <nathandbossart@gmail.com>
Co-authored-by: Anthropic OSS program
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Security: CVE-2026-116308
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/053e39d93498ec00640aed28fabb3e6fd4c5e1ce
Author: Nathan Bossart <nathan@postgresql.org>

Modified Files
--------------
contrib/dict_int/dict_int.c            | 6 +++++-
contrib/dict_int/expected/dict_int.out | 6 ++++++
contrib/dict_int/sql/dict_int.sql      | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: dict_int: Return NULL for zero-length tokens.
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

dict_int: Return NULL for zero-length tokens.

dintdict_lexize() does not check for zero-length tokens before
inspecting its input, so it can read past the end of the token.  In
some cases, the returned lexeme can even contain data from well
beyond it.  To fix, return NULL for a zero-length token, as
dict_ispell, dict_synonym, and dict_xsyn already do.

Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reported-by: Anthropic OSS program
Author: Nathan Bossart <nathandbossart@gmail.com>
Co-authored-by: Anthropic OSS program
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Security: CVE-2026-116308
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/19b5650880653478844141beabd4da5615bbeb2c
Author: Nathan Bossart <nathan@postgresql.org>

Modified Files
--------------
contrib/dict_int/dict_int.c            | 6 +++++-
contrib/dict_int/expected/dict_int.out | 6 ++++++
contrib/dict_int/sql/dict_int.sql      | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: dict_int: Return NULL for zero-length tokens.
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

dict_int: Return NULL for zero-length tokens.

dintdict_lexize() does not check for zero-length tokens before
inspecting its input, so it can read past the end of the token.  In
some cases, the returned lexeme can even contain data from well
beyond it.  To fix, return NULL for a zero-length token, as
dict_ispell, dict_synonym, and dict_xsyn already do.

Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reported-by: Anthropic OSS program
Author: Nathan Bossart <nathandbossart@gmail.com>
Co-authored-by: Anthropic OSS program
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Security: CVE-2026-116308
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8373a421558c05813ae6d428102892de38a934ea
Author: Nathan Bossart <nathan@postgresql.org>

Modified Files
--------------
contrib/dict_int/dict_int.c            | 6 +++++-
contrib/dict_int/expected/dict_int.out | 6 ++++++
contrib/dict_int/sql/dict_int.sql      | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: dict_int: Return NULL for zero-length tokens.
@ 2026-11-09 14:22  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:22 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

dict_int: Return NULL for zero-length tokens.

dintdict_lexize() does not check for zero-length tokens before
inspecting its input, so it can read past the end of the token.  In
some cases, the returned lexeme can even contain data from well
beyond it.  To fix, return NULL for a zero-length token, as
dict_ispell, dict_synonym, and dict_xsyn already do.

Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reported-by: Anthropic OSS program
Author: Nathan Bossart <nathandbossart@gmail.com>
Co-authored-by: Anthropic OSS program
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Security: CVE-2026-116308
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dec3a342d0c399edde359542bc2a95ee64ef1dd4
Author: Nathan Bossart <nathan@postgresql.org>

Modified Files
--------------
contrib/dict_int/dict_int.c            | 6 +++++-
contrib/dict_int/expected/dict_int.out | 6 ++++++
contrib/dict_int/sql/dict_int.sql      | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2026-11-09 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 14:21 pgsql: dict_int: Return NULL for zero-length tokens. Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: dict_int: Return NULL for zero-length tokens. Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: dict_int: Return NULL for zero-length tokens. Noah Misch <noah@leadboat.com>
2026-11-09 14:22 pgsql: dict_int: Return NULL for zero-length tokens. Noah Misch <noah@leadboat.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox