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
caf88532
Commit
caf88532
authored
Apr 19, 2016
by
Poul-Henning Kamp
Committed by
Pål Hermunn Johansen
Apr 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (insignificant) memory leak with mal-formed ESI directives.
Fixes #1912
parent
5a46b8c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cache_esi_parse.c
bin/varnishd/cache/cache_esi_parse.c
+3
-0
No files found.
bin/varnishd/cache/cache_esi_parse.c
View file @
caf88532
...
...
@@ -851,6 +851,8 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
vep_mark_skip
(
vep
,
p
);
vep
->
in_esi_tag
=
0
;
vep
->
state
=
VEP_NEXTTAG
;
if
(
vep
->
attr_vsb
)
VSB_destroy
(
&
vep
->
attr_vsb
);
}
/******************************************************
...
...
@@ -885,6 +887,7 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
vep
->
state
=
VEP_TAGERROR
;
}
}
else
if
(
vep
->
state
==
VEP_ATTRGETVAL
)
{
AZ
(
vep
->
attr_vsb
);
vep
->
attr_vsb
=
VSB_new_auto
();
vep
->
state
=
VEP_ATTRDELIM
;
}
else
if
(
vep
->
state
==
VEP_ATTRDELIM
)
{
...
...
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