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
b7226821
Commit
b7226821
authored
Feb 13, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it clear to coverity that we are not doing anything untoward
with the frame length.
parent
6ab74478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+3
-3
No files found.
bin/varnishd/http2/cache_http2_proto.c
View file @
b7226821
...
...
@@ -260,8 +260,6 @@ h2_vsl_frame(const struct h2_sess *h2, const void *ptr, size_t len)
if
(
len
>
9
)
VSLb_bin
(
h2
->
vsl
,
SLT_H2RxBody
,
len
-
9
,
b
+
9
);
u
=
vbe32dec
(
b
)
>>
8
;
vsb
=
VSB_new_auto
();
AN
(
vsb
);
p
=
h2_framename
((
enum
h2frame
)
b
[
3
]);
...
...
@@ -269,13 +267,15 @@ h2_vsl_frame(const struct h2_sess *h2, const void *ptr, size_t len)
VSB_cat
(
vsb
,
p
);
else
VSB_quote
(
vsb
,
b
+
3
,
1
,
VSB_QUOTE_HEX
);
u
=
vbe32dec
(
b
)
>>
8
;
VSB_printf
(
vsb
,
"[%u] "
,
u
);
VSB_quote
(
vsb
,
b
+
4
,
1
,
VSB_QUOTE_HEX
);
VSB_putc
(
vsb
,
' '
);
VSB_quote
(
vsb
,
b
+
5
,
4
,
VSB_QUOTE_HEX
);
if
(
u
>
0
)
{
VSB_putc
(
vsb
,
' '
);
VSB_quote
(
vsb
,
b
+
9
,
u
,
VSB_QUOTE_HEX
);
VSB_quote
(
vsb
,
b
+
9
,
len
-
9
,
VSB_QUOTE_HEX
);
}
AZ
(
VSB_finish
(
vsb
));
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2RXF %s"
,
VSB_data
(
vsb
));
...
...
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