Standard opcodes usually have ULEB128 arguments, so it is generally not possible to recover from such errors. This patch causes the parser to stop parsing the table in such situations.
Also don't emit the operands or add data to the table if there is an error reading these opcodes.
A helper function might simplify this code a little bit:
I was considering making the helper more generic so it could do both ULEB and SLEB but I don't think that's worth the extra complexity.