SecureBrain / ruby_apk

analyzing android apk library for ruby
MIT License
83 stars 52 forks source link

crash in resource parse #5

Closed masatanish closed 11 years ago

masatanish commented 11 years ago

reported by cielavenir in issue #1 ver0.5.0

/var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:261:in `[]': bignum too big to convert into `long' (RangeError)
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:261:in `block (2 levels) in extract_res_strings'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:256:in `times'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:256:in `block in extract_res_strings'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:254:in `each'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:254:in `extract_res_strings'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:116:in `global_string_pool='
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:509:in `parse'
    from /var/lib/gems/1.9.1/gems/ruby_apk-0.5.0/lib/android/resource.rb:441:in `initialize'
    from label.rb:16:in `new'
    from label.rb:16:in `block (2 levels) in <main>'
    from /var/lib/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:90:in `open'
    from label.rb:10:in `block in <main>'
    from label.rb:9:in `each'
    from label.rb:9:in `<main>'
cielavenir commented 11 years ago

meh; aapt d badging /work/apk/data/com.viber.voip[Viber]-22_2.3.2.61.apk said: package: name='com.viber.voip' versionCode='22' versionName='2.3.2.61' MD5 of resources.arsc is a7a5dc10a389e71918fa90408a813d6e

masatanish commented 11 years ago

I tested the same resource. But I can't reproduce it. I got application label without crash. Do you have another reproduced apk??

DavidRagone commented 11 years ago

Is this still a problem, or can it be closed?

masatanish commented 11 years ago

I can't reproduce this issue. and there is no additional report. so I close it.