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
b8034f31
Commit
b8034f31
authored
Dec 09, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use weaker plain magic check for WS overflows to avoid recursive panics
parent
3be8ba2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cache_ws.c
bin/varnishd/cache/cache_ws.c
+2
-2
No files found.
bin/varnishd/cache/cache_ws.c
View file @
b8034f31
...
...
@@ -85,7 +85,7 @@ WS_Init(struct ws *ws, const char *id, void *space, unsigned len)
static
void
WS_MarkOverflow
(
struct
ws
*
ws
)
{
WS_Assert
(
ws
);
CHECK_OBJ_NOTNULL
(
ws
,
WS_MAGIC
);
ws
->
id
[
0
]
&=
~
0x40
;
// Cheasy toupper()
}
...
...
@@ -220,7 +220,7 @@ WS_ReleaseP(struct ws *ws, char *ptr)
int
WS_Overflowed
(
const
struct
ws
*
ws
)
{
WS_Assert
(
ws
);
CHECK_OBJ_NOTNULL
(
ws
,
WS_MAGIC
);
if
(
ws
->
id
[
0
]
&
0x40
)
return
(
0
);
...
...
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