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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e00adcca6952a55f4ef4ebc5ced332606021363f7efd625959b292376cbb42f4
4
- data.tar.gz: 26e3bc5136af88ccc5f5d6c312b4f8db53a93c4b41db122ab334ee0a54a288d7
3
+ metadata.gz: baf5180fcccc876442fd65581828e91f8a362657f788a64c36ea7e2fbcd20c5a
4
+ data.tar.gz: 4372260ec8fc5ca97b96e14f6413ca5126c79f716446f804974f946ee06bd09f
5
5
  SHA512:
6
- metadata.gz: 62a968561ed825a1f1a8b7cc6df80086aa3b002af9905d691a71cbff54d42634d9870966b643c21849f20b339b9074aa8c234800504bc205b1c8d7830ad279af
7
- data.tar.gz: 0ad963ae8c7727694dd7da1579ff38a94db270a19636e32a500526a4164f9be55b4a91abbb87f56a1ce401a8f50f83fde20e11620605873cb5a1d9f4dd33ee85
6
+ metadata.gz: 1c5ab262e05127590f9cf1e28cc787e63db35a8fce1a9be86a55ce2e1ec813a6044a0f68d26149ad222a1cc67ef763afdf3df219b9bf8de28095f5ac4b7e9500
7
+ data.tar.gz: fea4f806def364feca723f04490f80541466d39ef7ac24fa6eb491a463baa90839d2b0bc6e1234027959abe3ec7ef6ac6874afbe8cda915570ddf6f5527e2f70
@@ -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 = 0)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ELFTools
4
4
  # Current gem version
5
- VERSION = '1.3.0'
5
+ VERSION = '1.3.1'
6
6
  end
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.0
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-02-17 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata