Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

MST fuzzing #1845

Merged
merged 2 commits into from
Nov 20, 2018
Merged

MST fuzzing #1845

merged 2 commits into from
Nov 20, 2018

Conversation

luckychess
Copy link
Contributor

Description of the Change

Fuzzing for MST endpoint (SendState).

Benefits

One more endpoint covered.

Possible Drawbacks

CI is needed.
Also it looks like a false positive warning from Address Sanitizer (at least I couldn't find a problem - see https://gist.github.com/luckychess/b65bd40e958887273e86a0a535cc896d).

Usage Examples or Tests

cmake -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++  -DFUZZING=ON ..
make mst_fuzz

Copy link
Contributor

@igor-egorov igor-egorov left a comment

Choose a reason for hiding this comment

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

Did not catch the same issue as in referenced gist. The fuzzer caught SEGV.

shared_model::interface::Transaction>>
tx_validator =
std::make_unique<shared_model::validation::
DefaultOptionalSignedTransactionValidator>();
Copy link
Contributor

Choose a reason for hiding this comment

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

The problem with this approach is that the possible changes in application.cpp will not be reflected in this file. Please think of a solution where components in application.cpp are referenced here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After discussion with @igor-egorov we decided to leave TODO and fix this issue later since it affect other tasks too.

Copy link
Contributor

@nickaleks nickaleks left a comment

Choose a reason for hiding this comment

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

Please fix andrei's issue

Signed-off-by: Konstantin Munichev <toobwn@gmail.com>
Signed-off-by: Konstantin Munichev <toobwn@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

5 participants