-
Notifications
You must be signed in to change notification settings - Fork 5.5k
stats: Avoid asserts in fuzz-tests by eliminating arbitrary length limits, using the new MemBlock wrapper for memcpy #8779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jmarantz
merged 50 commits into
envoyproxy:master
from
jmarantz:stats-fuzzer-not-too-long
Dec 20, 2019
Merged
Changes from 12 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
5d40fc4
Avoid crashes in fuzz-tests due to input strings being too long.
jmarantz 8f9ab93
Eliminate 64k limit on # of segments in a real symbol-table stat-name…
jmarantz beb4684
some cleanup
jmarantz d143365
Share helper methods for encoding/decoding symbols and sizes.
jmarantz 5ef1a49
cleanup
jmarantz c425551
typo
jmarantz f680ccc
fix confusing about whether the encoding-length was the number of byt…
jmarantz 9fee9f5
fix over-aggressive inequality for fake symbol tables
jmarantz 184fbed
don't recompute the number of bytes consumed.
jmarantz 6ac3dee
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 9c62a9e
remove dynamo-stats test change which is not needed
jmarantz 4482ca7
use totalSizeBytes to simplify some code.
jmarantz 14220bb
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 4d345d0
add MemBlock abstraction to isolate risky memory operations.
jmarantz 5b6f0db
reduce need to do byte access to the memory buffers.
jmarantz 70ffe33
remove remainder of memcpy and pointer arithmetic outside MemBlock cl…
jmarantz 9f1eae7
format
jmarantz cf33e18
some cleanup -- still needs more unit tests.
jmarantz 14b8740
remove superfluous methods.
jmarantz eb6eb51
add unit test.
jmarantz 6d4b8bc
improve class comment.
jmarantz cf71f0b
rename MemBlock to MemBlockBuilder.
jmarantz 256a857
Rename MemBlock to MemBlockBuilder to better reflect intended usage m…
jmarantz cb17d28
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 7b3150e
format.
jmarantz c4ddd4a
improve comments and function naming.
jmarantz c728651
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 4824977
guard memcpy against 0-byte calls, which show up as asan failures.
jmarantz 3c9b184
Merge branch 'stats-fuzzer-not-too-long' of github.com:jmarantz/envoy…
jmarantz 5f4ea86
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 64c0af4
RELEASE_ASSERT rather than ASSERT, use non-constructing allocation.
jmarantz 06e3fbc
add test to make sure we don't construct anything.
jmarantz b2131df
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz a281e28
update gold values
jmarantz cd98dd2
Go back to new-ing an array and clean up.
jmarantz cf7b451
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 8069e89
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 9ae8144
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 922a860
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 6dcc218
typo and gold values update.
jmarantz 006b5c7
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz aa70e5e
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz 9033ac6
post-merge cleanup
jmarantz d19d722
more cleanups
jmarantz ae1da1b
Cleanup lifetime issues in test infrastructure.
jmarantz bc9871e
update MemBlockBuilder interface change
jmarantz ae0b1dd
Merge branch 'master' into stats-fuzzer-not-too-long
jmarantz f4ef7c6
popuplate -> setCacacity
jmarantz 3edfac7
add direct fuzzing of the encoder.
jmarantz 4f5be6c
Share testing infrastructure between fuzz-tests and unit-tests.
jmarantz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.