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
63e7b21b
Commit
63e7b21b
authored
Jan 08, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp2_hd: Fix lower bound search in static table
parent
ecc4290d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+2
-2
No files found.
lib/nghttp2_hd.c
View file @
63e7b21b
...
...
@@ -975,7 +975,7 @@ static search_result search_hd_table(nghttp2_hd_context *context,
size_t
i
;
uint32_t
name_hash
=
hash
(
nv
->
name
,
nv
->
namelen
);
uint32_t
value_hash
=
hash
(
nv
->
value
,
nv
->
valuelen
);
s
ize_t
left
=
0
,
right
=
STATIC_TABLE_LENGTH
;
s
size_t
left
=
-
1
,
right
=
STATIC_TABLE_LENGTH
;
for
(
i
=
0
;
i
<
context
->
deflate_hd_tablelen
;
++
i
)
{
nghttp2_hd_entry
*
ent
=
nghttp2_hd_ringbuf_get
(
&
context
->
hd_table
,
i
);
...
...
@@ -992,7 +992,7 @@ static search_result search_hd_table(nghttp2_hd_context *context,
}
while
(
right
-
left
>
1
)
{
size_t
mid
=
(
left
+
right
)
/
2
;
s
s
ize_t
mid
=
(
left
+
right
)
/
2
;
nghttp2_hd_entry
*
ent
=
&
static_table
[
mid
].
ent
;
if
(
ent
->
name_hash
<
name_hash
)
{
left
=
mid
;
...
...
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