elftools 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elftools/elf_file.rb +1 -1
- data/lib/elftools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf5180fcccc876442fd65581828e91f8a362657f788a64c36ea7e2fbcd20c5a
|
4
|
+
data.tar.gz: 4372260ec8fc5ca97b96e14f6413ca5126c79f716446f804974f946ee06bd09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c5ab262e05127590f9cf1e28cc787e63db35a8fce1a9be86a55ce2e1ec813a6044a0f68d26149ad222a1cc67ef763afdf3df219b9bf8de28095f5ac4b7e9500
|
7
|
+
data.tar.gz: fea4f806def364feca723f04490f80541466d39ef7ac24fa6eb491a463baa90839d2b0bc6e1234027959abe3ec7ef6ac6874afbe8cda915570ddf6f5527e2f70
|
data/lib/elftools/elf_file.rb
CHANGED
@@ -290,7 +290,7 @@ module ELFTools
|
|
290
290
|
# elf = ELFTools::ELFFile.new(File.open('/bin/cat'))
|
291
291
|
# elf.offset_from_vma(0x401337)
|
292
292
|
# #=> 4919 # 0x1337
|
293
|
-
def offset_from_vma(vma, size =
|
293
|
+
def offset_from_vma(vma, size = 1)
|
294
294
|
segments_by_type(:load) do |seg|
|
295
295
|
return seg.vma_to_offset(vma) if seg.vma_in?(vma, size)
|
296
296
|
end
|
data/lib/elftools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elftools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- david942j
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|