Bug ID: 2190
Summary: This will always return PCRE2_ERROR_NOMEMORY if
match_data and mcontext both are NULL
Version: 10.30 (PCRE2)
I see that the function pcre2_substitute has the following code
So if I am not wrong, if match_data == NULL and mcontext is also NULL then
gcontext becomes equal to code ???
match data is prepared with
match_data = pcre2_match_data_create_from_pattern(code, code) ????
this is bound to fail ........is it not?
As I think, the line should have been
pcre2_general_context *gcontext = (mcontext == NULL)?
Please note, I am relatively a newbie in this, so please excuse me if the above
does not make any sense.
You are receiving this mail because:
You are on the CC list for the bug.
This message was posted to the following mailing lists: