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
8e52a5c7
Commit
8e52a5c7
authored
Nov 12, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for the bug that shift goes beyond 32 bits in decode_length
parent
0aa35e57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
tests/nghttp2_hd_test.c
tests/nghttp2_hd_test.c
+13
-0
No files found.
tests/nghttp2_hd_test.c
View file @
8e52a5c7
...
...
@@ -1492,6 +1492,19 @@ void test_nghttp2_hd_decode_length(void) {
rv
=
nghttp2_hd_decode_length
(
&
out
,
&
shift
,
&
fin
,
0
,
0
,
buf
,
buf
+
len
,
7
);
CU_ASSERT
(
-
1
==
rv
);
/* Check the case that shift goes beyond 32 bits */
buf
[
0
]
=
255
;
buf
[
1
]
=
128
;
buf
[
2
]
=
128
;
buf
[
3
]
=
128
;
buf
[
4
]
=
128
;
buf
[
5
]
=
128
;
buf
[
6
]
=
1
;
rv
=
nghttp2_hd_decode_length
(
&
out
,
&
shift
,
&
fin
,
0
,
0
,
buf
,
buf
+
7
,
8
);
CU_ASSERT
(
-
1
==
rv
);
}
void
test_nghttp2_hd_huff_encode
(
void
)
{
...
...
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