Skip to content
Snippets Groups Projects
Commit ec7e3f99 authored by Aidan Kehoe's avatar Aidan Kehoe
Browse files

Avoid choking when regexp ranges can span invalid Ichars, charset_mule

src/ChangeLog addition:

2025-03-06  Aidan Kehoe  <kehoea@parhasard.net>

	* regex.c (compile_extended_range):
	If THIS_CHAR is not a valid Ichar, don't look it up in the
	translation table, avoiding crashes with error checking when
	invalid characters are within the range specified. Do include them
	in the range table, which will allow coalescing ranges that would
	otherwise not be.

lisp/ChangeLog addition:

2025-03-06  Aidan Kehoe  <kehoea@parhasard.net>

	* unicode.el:
	Move some code that tested unicode-error-default-translation-table
	and unicode-invalid-sequence-regexp-range to
	../tests/automated/regexp-tests.el.

tests/ChangeLog addition:

2025-03-06  Aidan Kehoe  <kehoea@parhasard.net>

	* automated/regexp-tests.el:
	Move some code to test unicode-error-default-translation-table,
	unicode-invalid-sequence-regexp-range here from lisp/unicode.el.
parent 7780b89f
Branches branch/default
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment