Giter Site home page Giter Site logo

Elf parsed as mp3 about fq HOT 10 CLOSED

alex-bender avatar alex-bender commented on August 25, 2024
Elf parsed as mp3

from fq.

Comments (10)

alex-bender avatar alex-bender commented on August 25, 2024 1

sorry to disturb, it looks like recent version is working fine

from fq.

wader avatar wader commented on August 25, 2024

Hi, nope that should ideally not happen. I suspect what happens is that the elf decode fails for some reason (because of bug?) which makes it possible for the mp3 decoder to get a chance to decode it which succeeds (because of other bug).

Would it be possible for you to share or link to the ls binary our testing on? that would make it easer to fix the elf bug and also tune the mp3 heuristics a bit.

BTW you can do fq -d elf d /bin/ls if you want to try only the elf decoder which also will give a partial decode tree if it fails.

from fq.

alex-bender avatar alex-bender commented on August 25, 2024
$ fq -d elf d /bin/ls
       |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17|0123456789abcdef01234567|.{}: /bin/ls (elf)
       |                                                                       |                        |  error: elf: BytesRange: failed at position 139932 (read size 2280 seek pos 0): EOF
       |                                                                       |                        |  ident{}:
0x00000|7f 45 4c 46                                                            |.ELF                    |    magic: raw bits (valid)
0x00000|            02                                                         |    .                   |    class: 64 (2)
0x00000|               01                                                      |     .                  |    data: "little-endian" (1)
0x00000|                  01                                                   |      .                 |    version: 1
0x00000|                     00                                                |       .                |    os_abi: "Sysv" (0)
0x00000|                        00                                             |        .               |    abi_version: 0
0x00000|                           00 00 00 00 00 00 00                        |         .......        |    pad: raw bits (all zero)
0x00000|                                                03 00                  |                ..      |  type: "Dyn" (0x3)
0x00000|                                                      3e 00            |                  >.    |  machine: "AMD x86-64" (0x3e)
0x00000|                                                            01 00 00 00|                    ....|  version: 1
0x00018|d0 67 00 00 00 00 00 00                                                |.g......                |  entry: 26576
0x00018|                        40 00 00 00 00 00 00 00                        |        @.......        |  phoff: 64
0x00018|                                                c0 23 02 00 00 00 00 00|                .#......|  shoff: 140224
0x00030|00 00 00 00                                                            |....                    |  flags: 0
0x00030|            40 00                                                      |    @.                  |  ehsize: 64
0x00030|                  38 00                                                |      8.                |  phentsize: 56
0x00030|                        0d 00                                          |        ..              |  phnum: 13
0x00030|                              40 00                                    |          @.            |  shentsize: 64
0x00030|                                    1e 00                              |            ..          |  shnum: 30
0x00030|                                          1d 00                        |              ..        |  shstrndx: 29
0x00030|                                                06 00 00 00 04 00 00 00|                ........|  unknown0: raw bits
0x00048|40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00|@.......@.......@.......|

from fq.

alex-bender avatar alex-bender commented on August 25, 2024

bin.ls.tar.gz

from fq.

wader avatar wader commented on August 25, 2024

Thanks, what version of fq are you using? master seems to decode it fine

from fq.

wader avatar wader commented on August 25, 2024

Aha no problem!

from fq.

wader avatar wader commented on August 25, 2024

But good input for improving the mp3 decoder 👍

from fq.

alex-bender avatar alex-bender commented on August 25, 2024

It could save a bit of work writing template for github issue, asking to provide a version or check on recent version.
my previous was fq -v => dev so it goes.

from fq.

Doctor-love avatar Doctor-love commented on August 25, 2024

It could save a bit of work writing template for github issue, asking to provide a version or check on recent version. my previous was fq -v => dev so it goes.

Great suggestion - will look into it!

from fq.

wader avatar wader commented on August 25, 2024

@Doctor-love That would be great. Asked for verison, try master, ask for verbose output, ask for example files i guess?

@alex-bender Thanks good idea. Sorry for the dev version thingy that has been addressed in later versions also.

from fq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.