lib/ronin/exploits/mixins/binary.rb in ronin-exploits-1.0.1 vs lib/ronin/exploits/mixins/binary.rb in ronin-exploits-1.0.2
- old
+ new
@@ -77,9 +77,12 @@
# Ronin::Support::Binary::CTypes::Arch::PPC64,
# Ronin::Support::Binary::CTypes::Arch::X86,
# Ronin::Support::Binary::CTypes::Arch::X86_64,
# Ronin::Support::Binary::CTypes::OS]
#
+ # @raise [ArgumentError]
+ # The exploit defined an unknown `arch` or `os` value.
+ #
def platform
@platform ||= Support::Binary::CTypes.platform(
arch: arch,
os: (os if respond_to?(:os))
)