diff options
author | Mamoru TASAKA <mtasaka@fedoraproject.org> | 2022-07-26 21:51:45 +0900 |
---|---|---|
committer | Mamoru TASAKA <mtasaka@fedoraproject.org> | 2022-07-26 21:51:45 +0900 |
commit | 710ccee65c010e4548ded487cdc191658f6a1f35 (patch) | |
tree | 729dcbb216cfeb6369f94b678355557b61640b17 /glib | |
parent | 2b21a30a596f1be4e5c6ffc2f7264da79283d8db (diff) | |
download | glib-710ccee65c010e4548ded487cdc191658f6a1f35.tar.gz |
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
Diffstat (limited to 'glib')
-rw-r--r-- | glib/gregex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gregex.c b/glib/gregex.c index dd61dc481..08c43ef4b 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -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; |