Skip to content

Commit

Permalink
minus 1
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Jan 18, 2024
1 parent 3e7aa18 commit 69551c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcos-executor/src/vm/Precompiled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ pair<bool, bytes> ecRecover(bytesConstRef _in)
return {false, {}};
}

if (_in.size() != 64 + RSV_LENGTH)
if (_in.size() != 64 + RSV_LENGTH - 1)
{
BCOS_LOG(TRACE) << LOG_BADGE("Precompiled") << LOG_DESC("ecRecover: invalid input size");
return {true, {}};
Expand Down

0 comments on commit 69551c5

Please sign in to comment.