Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-re
Commits
6175eac4
Unverified
Commit
6175eac4
authored
Apr 04, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: while we see partial matches, we can not yet enable NOTBOL
parent
929cf112
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
vmod_re.c
src/vmod_re.c
+13
-13
No files found.
src/vmod_re.c
View file @
6175eac4
...
...
@@ -435,19 +435,6 @@ match_iter_f(void *priv, unsigned flush, const void *ptr, ssize_t len)
reip
->
s
,
len
,
subject
,
len
);
#endif
reip
->
options
|=
PCRE2_NOTBOL
;
if
(
reip
->
s
<
PCRE2_ERROR_PARTIAL
)
return
(
1
);
if
(
reip
->
s
==
PCRE2_ERROR_NOMATCH
)
{
reip
->
startoffset
=
0
;
reip
->
b
=
0
;
reip
->
e
=
0
;
return
(
0
);
}
CAST_OBJ_NOTNULL
(
ov
,
reip
->
task
->
priv
,
OV_MAGIC
);
if
(
reip
->
s
==
PCRE2_ERROR_PARTIAL
&&
reip
->
b
!=
NULL
)
...
...
@@ -468,6 +455,19 @@ match_iter_f(void *priv, unsigned flush, const void *ptr, ssize_t len)
return
(
0
);
}
reip
->
options
|=
PCRE2_NOTBOL
;
if
(
reip
->
s
<
PCRE2_ERROR_PARTIAL
)
return
(
1
);
if
(
reip
->
s
==
PCRE2_ERROR_NOMATCH
)
{
reip
->
startoffset
=
0
;
reip
->
b
=
0
;
reip
->
e
=
0
;
return
(
0
);
}
assert
(
reip
->
s
>
PCRE2_ERROR_NOMATCH
);
if
(
reip
->
b
==
NULL
&&
(
flush
&
OBJ_ITER_FLUSH
)
==
0
)
{
...
...
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