Fix use of uninitialized value issue from fuzzing#13140
Open
shukitchan wants to merge 1 commit intoapache:masterfrom
Open
Fix use of uninitialized value issue from fuzzing#13140shukitchan wants to merge 1 commit intoapache:masterfrom
shukitchan wants to merge 1 commit intoapache:masterfrom
Conversation
Member
|
[approve ci freebsd clang-analyzer autest] |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request refactors the FNV-1a hash implementation to simplify initialization and improve code clarity. The main changes involve moving the FNV initial constants into the class definitions as
constexprstatic members, initializing member variables directly, and simplifying constructors.Hash algorithm improvements:
FNV_INIT_32,FNV_INIT_64) into the respective classes (ATSHash32FNV1a,ATSHash64FNV1a) asstatic constexprmembers and used them to initializehvaldirectly in the class definition (include/tscore/HashFNV.h). [1] [2]clear()methods to use the newfnv_initstatic member instead of external constants (src/tscore/HashFNV.cc). [1] [2]ATSHash32FNV1aandATSHash64FNV1aby using default constructors instead of explicitly callingclear()(src/tscore/HashFNV.cc).Code style and safety:
type_bufbuffer inHttp3FrameFactory::createfor improved safety (src/proxy/http3/Http3Frame.cc).This fixes the reported fuzzing issues
https://oss-fuzz.com/testcase-detail/4669620266270720
https://oss-fuzz.com/testcase-detail/4793610426449920