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
50bc0029
Commit
50bc0029
authored
Oct 01, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix buffer overrun in varnishadm pass function
Spotted by: Coverity
parent
3c8d56a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
varnishadm.c
bin/varnishadm/varnishadm.c
+1
-1
No files found.
bin/varnishadm/varnishadm.c
View file @
50bc0029
...
...
@@ -351,7 +351,7 @@ pass(int sock)
}
}
if
(
fds
[
1
].
revents
&
POLLIN
||
fds
[
1
].
revents
&
POLLHUP
)
{
n
=
read
(
fds
[
1
].
fd
,
buf
,
sizeof
buf
);
n
=
read
(
fds
[
1
].
fd
,
buf
,
sizeof
buf
-
1
);
if
(
n
==
0
)
{
AZ
(
shutdown
(
sock
,
SHUT_WR
));
fds
[
1
].
fd
=
-
1
;
...
...
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