Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
58da463a
Commit
58da463a
authored
Mar 29, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make deflater bad state if parsing HEADERS/PUSH_PROMISE failed
parent
36c8de9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/nghttp2_session.c
lib/nghttp2_session.c
+10
-3
No files found.
lib/nghttp2_session.c
View file @
58da463a
...
...
@@ -4582,6 +4582,16 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
break
;
}
switch
(
iframe
->
frame
.
hd
.
type
)
{
case
NGHTTP2_HEADERS
:
case
NGHTTP2_PUSH_PROMISE
:
/* Mark inflater bad so that we won't perform further decoding */
session
->
hd_inflater
.
ctx
.
bad
=
1
;
break
;
default:
break
;
}
nghttp2_inbound_frame_reset
(
session
);
break
;
...
...
@@ -4714,9 +4724,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
return
rv
;
}
/* Mark inflater bad so that we won't perform further decoding */
session
->
hd_inflater
.
ctx
.
bad
=
1
;
busy
=
1
;
iframe
->
state
=
NGHTTP2_IB_IGN_PAYLOAD
;
...
...
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