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
79797c66
Commit
79797c66
authored
May 10, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: New feature check no_sanitizer
parent
db556310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
vtc_misc.c
bin/varnishtest/vtc_misc.c
+9
-0
No files found.
bin/varnishtest/vtc_misc.c
View file @
79797c66
...
...
@@ -420,6 +420,8 @@ ipvx_works(const char *target)
* recognized as a macro.
* persistent_storage
* Varnish was built with the deprecated persistent storage.
* no_sanitizer
* Varnish was not built with a sanitizer.
*
* Be careful with ignore_unknown_macro, because it may cause a test with a
* misspelled macro to fail silently. You should only need it if you must
...
...
@@ -432,6 +434,12 @@ static const unsigned with_persistent_storage = 1;
static
const
unsigned
with_persistent_storage
=
0
;
#endif
#if __SANITIZER
static
const
unsigned
no_sanitizer
=
0
;
#else
static
const
unsigned
no_sanitizer
=
1
;
#endif
void
v_matchproto_
(
cmd_f
)
cmd_feature
(
CMD_ARGS
)
{
...
...
@@ -475,6 +483,7 @@ cmd_feature(CMD_ARGS)
FEATURE
(
"user_vcache"
,
getpwnam
(
"vcache"
)
!=
NULL
);
FEATURE
(
"group_varnish"
,
getgrnam
(
"varnish"
)
!=
NULL
);
FEATURE
(
"persistent_storage"
,
with_persistent_storage
);
FEATURE
(
"no_sanitizer"
,
no_sanitizer
);
if
(
!
strcmp
(
*
av
,
"disable_aslr"
))
{
good
=
1
;
...
...
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