https://bugs.exim.org/show_bug.cgi?id=1816
--- Comment #2 from Boying Xu <xuboying@???> ---
(In reply to Philip Hazel from comment #1)
> pcre2demo is written in C. Your changes look like C++ to me - I am not a C++
> user. Can you demonstrate the same problem in C? (I'm not a Windows user
> either.)
Hi,
Good day!
Modified to C style:
====Working Code=====
#define LEN 200
char X[LEN];
for (unsigned int i = 0 ; i < LEN; i++){
X[i] = 'x';
}
X[LEN-1] = 0;
char * P = "^(.)+$";
pattern = (PCRE2_SPTR)P;
subject = (PCRE2_SPTR)X;
====Non Working Code(hanging)====
#define LEN 2000
char X[LEN];
for (unsigned int i = 0 ; i < LEN; i++){
X[i] = 'x';
}
X[LEN-1] = 0;
char * P = "^(.)+$";
pattern = (PCRE2_SPTR)P;
subject = (PCRE2_SPTR)X;
BR
Boying
--
You are receiving this mail because:
You are on the CC list for the bug.