[Bug 248452] lib.googletest.gtest_main.googletest-port-test.main failed after r363679
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 3 12:56:10 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248452
--- Comment #2 from Kyle Evans <kevans at freebsd.org> ---
My internal triage session below...
I note that:
Regular expression ".*(\w+)" is not a valid POSIX Extended regular expression.
\w is a GNU regex(3) extension that's short-hand for the POSIX-specified
[[:alnum:]]. Prior to r363679, this expression would have been valid but
incorrect, as it would match a literal 'w' rather than [[:alnum:]]. This is
technically undefined behavior, and r363679 switched things up so that we have
two valid interpretations of that UB, either:
1.) Expression fails to compile, extraneous escape, OR
2.) Expression compiles and uses the GNU-extended behavior (libregex)
This is favorable over #1 being 'Expression compiles and matches a literal w'.
I will fix this by soon (tonight, hopefully) introducing \w and \s, at least,
and linking gtest against libregex.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-testing
mailing list