Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
7ff12fdc
Commit
7ff12fdc
authored
Sep 03, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vre: Homework for later
parent
34dbf94c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
upgrading-trunk.rst
doc/sphinx/whats-new/upgrading-trunk.rst
+4
-0
vre.c
lib/libvarnish/vre.c
+4
-0
No files found.
doc/sphinx/whats-new/upgrading-trunk.rst
View file @
7ff12fdc
...
...
@@ -287,6 +287,10 @@ Notable breaking changes:
- ``VRE_export()`` packs a usable ``vre_t`` that can be persisted as a byte
stream
An exported regular expression takes the form of a byte stream of a given size
that can be used as-is by the various matching functions. Care should be taken
to always maintain pointer alignment of an exported ``vre_t``.
The ``VRE_ERROR_NOMATCH`` symbol is now hard-linked like ``VRE_CASELESS``, and
``VRE_NOTEMPTY`` is no longer supported. There are no match options left in
the VRE facade but the ``VRE_match()``, ``VRE_capture()`` and ``VRE_sub()``
...
...
lib/libvarnish/vre.c
View file @
7ff12fdc
...
...
@@ -135,6 +135,10 @@ pcre2_code *
VRE_unpack
(
const
vre_t
*
code
)
{
/* XXX: The ban code ensures that regex "lumps" are pointer-aligned,
* but coming for example from a VMOD there is no guarantee. Should
* we formally require that code is properly aligned?
*/
CHECK_OBJ_NOTNULL
(
code
,
VRE_MAGIC
);
if
(
code
->
re
==
VRE_PACKED_RE
)
{
AZ
(
code
->
re_ctx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment