mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
gregex: use correct size for pcre2_pattern_info
man pcre2_pattern_info says that the 3rd argument must point to uint32_t variable (except for some 2nd argument value), so correctly use it. Especially using wrong size can cause unexpected result on big endian. closes: #2699
This commit is contained in:
parent
2b21a30a59
commit
710ccee65c
@ -1701,7 +1701,7 @@ regex_compile (const gchar *pattern,
|
||||
PCRE2_SIZE erroffset;
|
||||
gint errcode;
|
||||
GRegexCompileFlags nonpcre_compile_options;
|
||||
unsigned long int pcre_compile_options;
|
||||
uint32_t pcre_compile_options;
|
||||
|
||||
nonpcre_compile_options = compile_options & G_REGEX_COMPILE_NONPCRE_MASK;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user