Jump to content

NOP slide: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
also used by EMC Aware Programming.
this belongs to software engineering category
Line 7: Line 7:


[[Category:Security exploits]]
[[Category:Security exploits]]
[[Category:software engineering]]

Revision as of 16:24, 20 September 2007

In computer CPUs a NOP slide, or NOP sled, is a sequence of NOP (no-operation) instructions (on Intel x86, this is opcode 0x90) meant to "slide" the CPU's instruction execution flow to its final, desired, destination. Generally a NOP slide will be used in cases where execution will branch into a position that cannot be determined with absolute accuracy, therefore "padding" the memory area before and after the approximate branch address is performed in the hope of avoiding an exception which would cause the program or system to crash. Once the CPU branches anywhere within the NOP slide, its IP (instruction pointer) will "slide" to its final destination, where there is valid code to be executed.

NOP slides can be used in buffer overflow and similar exploits designed to take over a program's execution path, or in defensive programming such as in EMC Aware Programming.

Sources