Skip to content

Commit 6d815bc

Browse files
committed
Haters gon hate, Windows' gotta be Windows.
1 parent 8d6e858 commit 6d815bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/exploitation/ropdb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def has_target?(rop, target)
120120
#
121121
def load_rop(file_path)
122122
f = File.open(file_path)
123-
xml = REXML::Document.new(f.read)
123+
xml = REXML::Document.new(f.read(f.stat.size))
124124
f.close
125125
return xml
126126
end

0 commit comments

Comments
 (0)