Validator checks OpReturn called from void func
authorAndrey Tuganov <andreyt@google.com>
Wed, 11 Oct 2017 22:13:21 +0000 (18:13 -0400)
committerDavid Neto <dneto@google.com>
Thu, 12 Oct 2017 19:32:32 +0000 (15:32 -0400)
commitb54997e6ebd9e361ed438fd5cdb1de5dfa5f4f56
tree99b7cc36e165bd78df82187e656025cce118c5c2
parent720beb161a7c3802cbc086c05466b52e8f187e07
Validator checks OpReturn called from void func

Added check into validate_cfg which checks that OpReturn is not called
from functions which are supposed to return a value.
source/val/function.h
source/val/validation_state.cpp
source/val/validation_state.h
source/validate_cfg.cpp
test/val/val_cfg_test.cpp
test/val/val_id_test.cpp