[pcre-dev] [Bug 2323] Allow for new subject string to be ass…

Páxina inicial
Borrar esta mensaxe
Autor: admin
Data:  
Para: pcre-dev
Asunto: [pcre-dev] [Bug 2323] Allow for new subject string to be assigned to pcre2_match_data structure
https://bugs.exim.org/show_bug.cgi?id=2323

--- Comment #4 from Arran Cudbard-Bell <a.cudbardb@???> ---
Confirmed this works as expected. Only slight concern is that the subject
field is left pointing to the original subject string if the match failed (as
opposed to being set to NULL). Hopefully none of the other functions attempt
to dereference subject if there are no matches.

--

(lldb) p ret
(int) $0 = 8
(lldb) p subject
(const char *) $2 = 0x000060b00005be80 "1_2_3_4_5_6_7"
(lldb) p (char *)(((uintptr_t *)(regmatch->match_data))[4])
(char *) $1 = 0x000060b00005e030 "1_2_3_4_5_6_7"

(lldb) p ret
(int) $15 = -1
(lldb) p subject
(const char *) $8 = 0x000060b00005cb90 "ABCDEF_8"
(lldb) p (char *)(((uintptr_t *)(regmatch->match_data))[4])
(char *) $14 = 0x000060b00005cb90 "ABCDEF_8"

--
You are receiving this mail because:
You are on the CC list for the bug.