Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2020 12:56:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 248452] lib.googletest.gtest_main.googletest-port-test.main failed after r363679
Message-ID:  <bug-248452-32464-WaFK3xr6hW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248452-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248452-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248452

--- Comment #2 from Kyle Evans <kevans@freebsd.org> ---
My internal triage session below...

I note that:

Regular expression ".*(\w+)" is not a valid POSIX Extended regular expressi=
on.

\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 h=
ave
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 leas=
t,
and linking gtest against libregex.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248452-32464-WaFK3xr6hW>