varnish-re2 binary package in Ubuntu Oracular arm64
Varnish Module (VMOD) for access to the Google RE2 regular expression
engine. Varnish VCL uses the PCRE library (Perl Compatible Regular Expressions)
for its native regular expressions, which runs very efficiently for many
common uses of pattern matching in VCL, as attested by years of
successful use of PCRE with Varnish.
.
But for certain kinds of patterns, the worst-case running time of the
PCRE matcher is exponential in the length of the string to be matched.
The matcher uses backtracking, implemented with recursive calls to the
internal match() function. In principle there is no upper bound to the
possible depth of backtracking and recursion, except as imposed by the
varnishd runtime parameters pcre_match_limit and
pcre_match_
met. Stack overflow caused by deep backtracking has occasionally been
the subject of varnishd issues.
.
RE2 differs from PCRE in that it limits the syntax of patterns so that
they always specify a regular language in the formally strict sense.
Most notably, backreferences within a pattern are not permitted, for
example (foo|bar)\1 to match foofoo and barbar, but not foobar
or barfoo. See the link in SEE ALSO for the specification of RE2
syntax.
.
This means that an RE2 matcher runs as a finite automaton, which
guarantees linear running time in the length of the matched string.
There is no backtracking, and hence no risk of deep recursion or stack
overflow.
Publishing history
Date | Status | Target | Component | Section | Priority | Phased updates | Version | ||
---|---|---|---|---|---|---|---|---|---|
2024-07-09 23:30:49 UTC | Published | Ubuntu Oracular arm64 | release | universe | web | Optional | 2.0.0-4 | ||
|
|||||||||
Deleted | Ubuntu Oracular arm64 | proposed | universe | web | Optional | 2.0.0-4 | |||
|
|||||||||
2024-07-09 23:31:46 UTC | Superseded | Ubuntu Oracular arm64 | release | universe | web | Optional | 2.0.0-3 | ||
|
|||||||||
2024-07-11 00:10:41 UTC | Deleted | Ubuntu Oracular arm64 | proposed | universe | web | Optional | 2.0.0-3 | ||
|
|||||||||
2024-07-09 05:47:03 UTC | Superseded | Ubuntu Oracular arm64 | release | universe | web | Optional | 2.0.0-2ubuntu1 | ||
|
|||||||||
2024-07-10 06:10:29 UTC | Deleted | Ubuntu Oracular arm64 | proposed | universe | web | Optional | 2.0.0-2ubuntu1 | ||
|
|||||||||
2024-05-25 10:37:59 UTC | Superseded | Ubuntu Oracular arm64 | release | universe | web | Optional | 2.0.0-2build2 | ||
|
|||||||||
2024-05-26 12:10:15 UTC | Deleted | Ubuntu Oracular arm64 | proposed | universe | web | Optional | 2.0.0-2build2 | ||
|
|||||||||
2024-05-24 15:14:31 UTC | Superseded | Ubuntu Oracular arm64 | release | universe | web | Optional | 2.0.0-2build1 | ||
|