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
78a56cf6
Commit
78a56cf6
authored
May 18, 2020
by
Asra Ali
Committed by
Tatsuhiro Tsujikawa
Jun 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ubsan errors
Signed-off-by:
Asra Ali
<
asraa@google.com
>
parent
ec084acd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
lib/nghttp2_buf.c
lib/nghttp2_buf.c
+4
-2
lib/nghttp2_frame.c
lib/nghttp2_frame.c
+4
-2
No files found.
lib/nghttp2_buf.c
View file @
78a56cf6
...
...
@@ -82,8 +82,10 @@ void nghttp2_buf_reset(nghttp2_buf *buf) {
}
void
nghttp2_buf_wrap_init
(
nghttp2_buf
*
buf
,
uint8_t
*
begin
,
size_t
len
)
{
buf
->
begin
=
buf
->
pos
=
buf
->
last
=
buf
->
mark
=
begin
;
buf
->
end
=
begin
+
len
;
buf
->
begin
=
buf
->
pos
=
buf
->
last
=
buf
->
mark
=
buf
->
end
=
begin
;
if
(
len
)
{
buf
->
end
+=
len
;
}
}
static
int
buf_chain_new
(
nghttp2_buf_chain
**
chain
,
size_t
chunk_length
,
...
...
lib/nghttp2_frame.c
View file @
78a56cf6
...
...
@@ -818,8 +818,10 @@ int nghttp2_frame_unpack_origin_payload(nghttp2_extension *frame,
size_t
len
=
0
;
origin
=
frame
->
payload
;
p
=
payload
;
end
=
p
+
payloadlen
;
p
=
end
=
payload
;
if
(
payloadlen
)
{
end
+=
payloadlen
;
}
for
(;
p
!=
end
;)
{
if
(
end
-
p
<
2
)
{
...
...
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