Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
unique-xids
Commits
f8f75cb1
Commit
f8f75cb1
authored
Mar 18, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't panic on malformed Vary headers.
Fixes: #1275 Test case by: Dag Haavi Finstad
parent
e316a5fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
cache_vary.c
bin/varnishd/cache/cache_vary.c
+5
-1
r01275.vtc
bin/varnishtest/tests/r01275.vtc
+14
-0
No files found.
bin/varnishd/cache/cache_vary.c
View file @
f8f75cb1
...
@@ -130,7 +130,11 @@ VRY_Create(struct req *req, const struct http *hp, struct vsb **psb)
...
@@ -130,7 +130,11 @@ VRY_Create(struct req *req, const struct http *hp, struct vsb **psb)
q
++
;
q
++
;
if
(
*
q
==
'\0'
)
if
(
*
q
==
'\0'
)
break
;
break
;
xxxassert
(
*
q
==
','
);
if
(
*
q
!=
','
)
{
VSLb
(
req
->
vsl
,
SLT_Error
,
"Malformed Vary header"
);
error
=
1
;
break
;
}
p
=
q
;
p
=
q
;
}
}
...
...
bin/varnishtest/tests/r01275.vtc
0 → 100644
View file @
f8f75cb1
varnishtest "#1275 - panic with malformed Vary header"
server s1 {
rxreq
txresp -hdr "Vary: foo bar"
} -start
varnish v1 -vcl+backend { } -start
client c1 {
txreq
rxresp
expect resp.status == 503
} -run
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