enigma
enigma copied to clipboard
to_opcode unsafe / undefined behavior
Just saw this project on hackernews and noticed that to_opcode
is a problem. If the input falls outside of the opcode range it produces undefined behavior. This probably needs to either assert with a panic or return Option
for unknown opcodes.