Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-blobcode
Commits
ea7344da
Commit
ea7344da
authored
Jan 31, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the configure option to enable the stack protector (on by default)
parent
c787c253
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
configure.ac
configure.ac
+13
-0
vmod_blobcode.vcc
src/vmod_blobcode.vcc
+12
-11
No files found.
configure.ac
View file @
ea7344da
...
...
@@ -69,6 +69,19 @@ AC_PATH_PROG([VARNISHTEST], [varnishtest], [],
AC_PATH_PROG([VARNISHD], [varnishd], [],
[$LIBVARNISHAPI_SBINDIR:$LIBVARNISHAPI_BINDIR:$PATH])
# --enable-stack-protector
AC_ARG_ENABLE(stack-protector,
AS_HELP_STRING([--enable-stack-protector],[enable stack protector (default is YES)]),
[],
[enable_stack_protector=yes])
if test "x$enable_stack_protector" != "xno"; then
AX_CHECK_COMPILE_FLAG([-fstack-protector],
AX_CHECK_LINK_FLAG([-fstack-protector],
[CFLAGS="${CFLAGS} -fstack-protector"], [], []),
[], [])
fi
AC_CONFIG_FILES([
Makefile
src/Makefile
...
...
src/vmod_blobcode.vcc
View file @
ea7344da
...
...
@@ -297,17 +297,18 @@ The VMOD allocates memory in various ways for new blobs and
strings. The ``blob`` object and its methods allocate memory from the
heap, and hence they are only limited by available virtual memory.
The ``encode()`` and ``decode()`` functions allocate Varnish
workspace. If these functions are failing, as indicated by "out of
space" messages in the Varnish log (with the ``VCL_Error`` tag), then
you will need to increase the varnishd parameters ``workspace_client``
and/or ``workspace_backend``.
The ``transcode()`` function also allocates workspace for the string
that it returns, and it allocates space on the stack for a temporary
BLOB. If this function causes stack overflow, you may need to increase
the stack size for the varnishd process, for example with ``ulimit
-s``.
The ``encode()``, ``decode()`` and ``transcode()`` functions allocate
Varnish workspace. If these functions are failing, as indicated by
"out of space" messages in the Varnish log (with the ``VCL_Error``
tag), then you will need to increase the varnishd parameters
``workspace_client`` and/or ``workspace_backend``.
The ``transcode()`` function also allocates space on the stack for a
temporary BLOB. If this function causes stack overflow, you may need
to increase the stack size for the varnishd process, for example with
``ulimit -s``. By default, the VMOD is built with the stack protector
enabled (compile option ``-fstack-protector``), but it can be disabled
with the ``./configure`` option ``--disable-stack-protector``.
AUTHORS
=======
...
...
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