Validator checks out of bounds composite access
authorAndrey Tuganov <andreyt@google.com>
Tue, 2 Jan 2018 21:02:55 +0000 (16:02 -0500)
committerDavid Neto <dneto@google.com>
Thu, 4 Jan 2018 19:02:38 +0000 (14:02 -0500)
commita376b197ae1121cfd1d02255a22b89c5a697a3df
treefd25bdc5de8b7b68e35df40c909c8032ee8370fe
parent5b52626eaa4bc599ba26b6b3fbee733cde23ba0f
Validator checks out of bounds composite access

1. Added OpCompositeExtract/Insert out of bounds checks where possible
(everything except RuntimeArray)
2. Moved validation of OpCompositeExtract/Insert from validate_id.cpp to
validate_composites.cpp.
source/validate_composites.cpp
source/validate_id.cpp
test/val/val_composites_test.cpp
test/val/val_id_test.cpp