Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make opcode 0x00 unreachable. #684

Merged
merged 1 commit into from
May 21, 2016
Merged

Commits on May 6, 2016

  1. Make opcode 0x00 unreachable.

    Make opcode 0x00 `unreachable`, and move `nop` to a non-zero opcode.
    
    All-zeros is one of the more common patterns of corrupted data. This
    change makes it more likely that code that is accidentally zeroed, in
    whole or in part, will be noticed when executed rather than silently
    running through a nop slide.
    
    Obviously, this doesn't matter when an opcode table is present, but
    if there is a default opcode table, it would presumably use the
    opcodes defined here.
    sunfishcode committed May 6, 2016
    Configuration menu
    Copy the full SHA
    4383c9a View commit details
    Browse the repository at this point in the history