Fix parser assert failure for a bad OpSwitch
authorDavid Neto <dneto@google.com>
Wed, 23 Dec 2015 18:21:43 +0000 (13:21 -0500)
committerDavid Neto <dneto@google.com>
Tue, 5 Jan 2016 16:25:58 +0000 (11:25 -0500)
commit3664bd5670d95cde15a04b58cc1c4ab96f5b6e47
treed207e26160de38e6bedd0408f34a0590b093a4eb
parent1a3734d265b7f6ca5e0de8dc672a9b2986cf46d0
Fix parser assert failure for a bad OpSwitch

Emit a diagnostic if the OpSwitch selector refers to an ID that
is valid but has no type.

Discovered by afl-fuzz.
source/binary.cpp
test/BinaryParse.cpp