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
a4ae320c
Commit
a4ae320c
authored
Aug 24, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: s/__SANITIZER/ENABLE_SANITIZER/
parent
c7eaf5d2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
+12
-11
cache_panic.c
bin/varnishd/cache/cache_panic.c
+1
-1
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+1
-1
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+1
-1
vtc_misc.c
bin/varnishtest/vtc_misc.c
+6
-6
configure.ac
configure.ac
+2
-1
vtcp.c
lib/libvarnish/vtcp.c
+1
-1
No files found.
bin/varnishd/cache/cache_panic.c
View file @
a4ae320c
...
...
@@ -614,7 +614,7 @@ pan_backtrace(struct vsb *vsb)
#else
/* WITH_UNWIND */
#if
_
_SANITIZER
#if
ENABLE
_SANITIZER
# define BACKTRACE_LEVELS 20
#else
# define BACKTRACE_LEVELS 10
...
...
bin/varnishd/cache/cache_varnishd.h
View file @
a4ae320c
...
...
@@ -514,7 +514,7 @@ void VCL_TaskLeave(VRT_CTX, struct vrt_privs *);
void
VMOD_Init
(
void
);
void
VMOD_Panic
(
struct
vsb
*
);
#if defined(ENABLE_COVERAGE) || defined(
_
_SANITIZER)
#if defined(ENABLE_COVERAGE) || defined(
ENABLE
_SANITIZER)
# define DONT_DLCLOSE_VMODS
#endif
...
...
bin/varnishd/mgt/mgt_param.c
View file @
a4ae320c
...
...
@@ -688,7 +688,7 @@ MCF_InitParams(struct cli *cli)
low
=
sysconf
(
_SC_THREAD_STACK_MIN
);
MCF_ParamConf
(
MCF_MINIMUM
,
"thread_pool_stack"
,
"%jdb"
,
(
intmax_t
)
low
);
#if defined(
__SANITIZER) || __has_feature(address_sanitizer
) || defined(ENABLE_COVERAGE)
#if defined(
ENABLE_SANITIZER
) || defined(ENABLE_COVERAGE)
def
=
192
*
1024
;
#endif
...
...
bin/varnishtest/vtc_misc.c
View file @
a4ae320c
...
...
@@ -457,16 +457,16 @@ static const unsigned coverage = 1;
static
const
unsigned
coverage
=
0
;
#endif
#if
WITH_PERSISTENT_STORAGE
static
const
unsigned
with_persistent_storage
=
1
;
#if
ENABLE_SANITIZER
static
const
unsigned
sanitizer
=
1
;
#else
static
const
unsigned
with_persistent_storage
=
0
;
static
const
unsigned
sanitizer
=
0
;
#endif
#if
__SANITIZER
static
const
unsigned
sanitizer
=
1
;
#if
WITH_PERSISTENT_STORAGE
static
const
unsigned
with_persistent_storage
=
1
;
#else
static
const
unsigned
sanitizer
=
0
;
static
const
unsigned
with_persistent_storage
=
0
;
#endif
#ifdef SO_RCVTIMEO_WORKS
...
...
configure.ac
View file @
a4ae320c
...
...
@@ -297,7 +297,8 @@ AC_ARG_ENABLE(msan,
[MSAN_FLAGS=-fsanitize=memory])
if test "x$UBSAN_FLAGS$TSAN_FLAGS$ASAN_FLAGS$MSAN_FLAGS" != "x"; then
AC_DEFINE([__SANITIZER], [1], [Define to 1 if any sanitizer is enabled.])
AC_DEFINE([ENABLE_SANITIZER], [1],
[Define to 1 if any sanitizer is enabled.])
SAN_FLAGS="$ASAN_FLAGS $UBSAN_FLAGS $TSAN_FLAGS $MSAN_FLAGS"
SAN_CFLAGS="$SAN_FLAGS -fPIC -fPIE -fno-omit-frame-pointer"
SAN_LDFLAGS=
...
...
lib/libvarnish/vtcp.c
View file @
a4ae320c
...
...
@@ -626,7 +626,7 @@ VTCP_Check(ssize_t a)
if
(
errno
==
EINVAL
)
return
(
1
);
#endif
#if
(defined(__SANITIZER) || __has_feature(address_sanitizer)
)
#if
defined(ENABLE_SANITIZER
)
if
(
errno
==
EINTR
)
return
(
1
);
#endif
...
...
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