[PATCH] Insert random NOPs to increase security against ROP attacks (llvm)

Andrei Homescu ahomescu at gmail.com
Mon Sep 8 23:45:54 PDT 2014


================
Comment at: lib/CodeGen/NOPInsertion.cpp:89
@@ +88,3 @@
+
+        ++InsertedNOPs;
+      }
----------------
This looks inconsistent: LLVM has uses "Noop" but we use "NOP". For consistency's sake, maybe we should change ours to "Noop" everywhere (I picked "NOP" to match the x86 instruction, don't know about other architectures).

http://reviews.llvm.org/D3392






More information about the llvm-commits mailing list