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
bb997101
Commit
bb997101
authored
May 05, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let varnishtest know if we use pcre_jit
parent
ce89ba7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
r01576.vtc
bin/varnishtest/tests/r01576.vtc
+2
-0
vtc.c
bin/varnishtest/vtc.c
+4
-0
vre.h
include/vre.h
+2
-0
vre.c
lib/libvarnish/vre.c
+2
-0
No files found.
bin/varnishtest/tests/r01576.vtc
View file @
bb997101
varnishtest "Test certain regex fail before consuming all the stack"
feature pcre_jit
server s1 {
rxreq
expect req.http.found == "1"
...
...
bin/varnishtest/vtc.c
View file @
bb997101
...
...
@@ -47,6 +47,7 @@
#include "vav.h"
#include "vnum.h"
#include "vre.h"
#include "vtim.h"
#define MAX_TOKENS 200
...
...
@@ -598,6 +599,9 @@ cmd_feature(CMD_ARGS)
getgrnam
(
"varnish"
)
!=
NULL
)
continue
;
if
(
!
strcmp
(
av
[
i
],
"pcre_jit"
)
&&
vre__jit
)
continue
;
vtc_log
(
vl
,
1
,
"SKIPPING test, missing feature: %s"
,
av
[
i
]);
vtc_stop
=
1
;
return
;
...
...
include/vre.h
View file @
bb997101
...
...
@@ -51,6 +51,8 @@ typedef struct vre vre_t;
extern
const
unsigned
VRE_CASELESS
;
extern
const
unsigned
VRE_NOTEMPTY
;
extern
const
int
vre__jit
;
vre_t
*
VRE_compile
(
const
char
*
,
int
,
const
char
**
,
int
*
);
int
VRE_exec
(
const
vre_t
*
code
,
const
char
*
subject
,
int
length
,
int
startoffset
,
int
options
,
int
*
ovector
,
int
ovecsize
,
...
...
lib/libvarnish/vre.c
View file @
bb997101
...
...
@@ -46,6 +46,8 @@
# define pcre_free_study pcre_free
#endif
const
int
vre__jit
=
VRE_STUDY_JIT_COMPILE
;
struct
vre
{
unsigned
magic
;
#define VRE_MAGIC 0xe83097dc
...
...
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