ruby-macho 6.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/macho/load_commands.rb +3 -0
- data/lib/macho.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2769cd71bcfd1cbc7857cc99e34e5ed6ab3dc092cd40ad8d912f8513a4f30439
|
|
4
|
+
data.tar.gz: fa4aececbdbeb0d74888fa34872f86a85ee8aae227249101f0d9c57a54c7a7a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c8eaa9b9d909b8007b8e09c56732d2be1279e80202b586e3252f6a40e201059bc008b5da57e76cd4efe2c1772837b3dd3dee9299222430dafa8b583db242b7b
|
|
7
|
+
data.tar.gz: '039662aacfd0c18ade0e8862ab3186ca235a35ff412eda8f098ce59084a37f7a99bb0acc40d9b68533d164dff5ef9d577f800cc4928f6b07b95fd5ae0246c49d'
|
data/lib/macho/load_commands.rb
CHANGED
|
@@ -472,6 +472,9 @@ module MachO
|
|
|
472
472
|
offset = view.offset + self.class.bytesize
|
|
473
473
|
length = nsects * klass.bytesize
|
|
474
474
|
|
|
475
|
+
available = view.raw_data.bytesize - offset
|
|
476
|
+
raise LoadCommandSizeError, cmdsize if length > available || self.class.bytesize + length > cmdsize
|
|
477
|
+
|
|
475
478
|
bins = view.raw_data[offset, length]
|
|
476
479
|
bins.unpack("a#{klass.bytesize}" * nsects).map do |bin|
|
|
477
480
|
klass.new_from_bin(view.endianness, bin)
|
data/lib/macho.rb
CHANGED
|
@@ -15,7 +15,7 @@ require_relative "macho/tools"
|
|
|
15
15
|
# The primary namespace for ruby-macho.
|
|
16
16
|
module MachO
|
|
17
17
|
# release version
|
|
18
|
-
VERSION = "
|
|
18
|
+
VERSION = "7.0.0"
|
|
19
19
|
|
|
20
20
|
# Opens the given filename as a MachOFile or FatFile, depending on its magic.
|
|
21
21
|
# @param filename [String] the file being opened
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-macho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Woodruff
|
|
@@ -43,14 +43,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '3.
|
|
46
|
+
version: '3.3'
|
|
47
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
requirements:
|
|
49
49
|
- - ">="
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
51
|
version: '0'
|
|
52
52
|
requirements: []
|
|
53
|
-
rubygems_version: 4.0.
|
|
53
|
+
rubygems_version: 4.0.16
|
|
54
54
|
specification_version: 4
|
|
55
55
|
summary: ruby-macho - Mach-O file analyzer.
|
|
56
56
|
test_files: []
|