Skip to content

Commit 068cf8e

Browse files
committed
Fix ghetto true/false checking in NOP generator
1 parent a1cfdd0 commit 068cf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nops/x86/single_byte.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def generate_sled(length, opts = {})
106106

107107
# Did someone specify random NOPs in the environment?
108108
if (!random and datastore['RandomNops'])
109-
random = (datastore['RandomNops'].match(/true|1|y/i) != nil)
109+
random = datastore['RandomNops']
110110
end
111111

112112
# Generate the whole sled...

0 commit comments

Comments
 (0)