Skip to content

Fixed test build failures under gcc 9#10965

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
dmitri-d:fix-test-failures-under-gcc
Apr 28, 2020
Merged

Fixed test build failures under gcc 9#10965
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
dmitri-d:fix-test-failures-under-gcc

Conversation

@dmitri-d
Copy link
Copy Markdown
Contributor

Signed-off-by: Dmitri Dolguikh ddolguik@redhat.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Commit Message: Fixed test build failures under gcc 9
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@mattklein123 mattklein123 merged commit 5649b83 into envoyproxy:master Apr 28, 2020
@dmitri-d dmitri-d deleted the fix-test-failures-under-gcc branch April 28, 2020 16:34
// segments, which trigger some inconsistent handling as described in that
// bug.
uint32_t num_bytes = 1 + data[index] & 0x7;
uint32_t num_bytes = (1 + data[index]) & 0x7;
Copy link
Copy Markdown
Contributor

@antoniovicente antoniovicente May 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmarantz

If you look at the comment above, I think the intent of this line was:
uint32_t num_bytes = 1 + (data[index] & 0x7);

Copy link
Copy Markdown
Contributor

@twghu twghu May 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to initial byte count has resolved fuzz crash 30088 and removed need for additional testing of num_bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants