1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00
Jim Meyering 76eb993a7b regex: avoid a UBSAN failure: remove an unnecessary DEBUG_ASSERT
* lib/regex_internal.c (re_node_set_insert): Remove the DEBUG_ASSERT
and instead return early for an attempt to insert an ELEM that is
already present in the set.  Relax the function's comment that says
there should be no duplicate.  This function is called from many
places and has been working fine.  With its nontrivial backrefs,
the sample regexp apparently elicits enough backtracking retries
and state-set merges to trigger this duplicate insertion attempt.
Reported by Bruno Haible in
https://lists.gnu.org/r/bug-gnulib/2026-04/msg00138.html
2026-04-19 09:54:22 -07:00
2026-04-01 07:12:55 -07:00
2026-04-13 19:19:09 -07:00

Please create and read the docs with

  $ cd doc
  $ make gnulib.html
  $ xdg-open gnulib.html

or read the online manual at

  https://www.gnu.org/software/gnulib/manual/gnulib.html
Description
No description provided
Readme 1,011 MiB
Languages
C 80.3%
M4 9.3%
Shell 3.8%
C++ 2.6%
Python 1.6%
Other 2.2%