Comments (10)
sorry to disturb, it looks like recent version is working fine
from fq.
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.
$ 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.
from fq.
Thanks, what version of fq are you using? master seems to decode it fine
from fq.
Aha no problem!
from fq.
But good input for improving the mp3 decoder 👍
from fq.
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.
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.
@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)
- [Feature] Support for Doom WAD Files HOT 5
- [feature] add decimal floating-point number support HOT 2
- mp3 file with id3 2.4.0 got killed from console output HOT 6
- typo HOT 3
- [Documentation] Any interest in creating a man page? HOT 5
- Feature request: zero-length start/end properties HOT 7
- Support for non-canonical tags with html HOT 5
- Color output is unreadable on terminals using light backgrounds. HOT 4
- make use of kaitai struct for additional formats? HOT 4
- [Feature request] Support image/bmp HOT 1
- Format Decoder Conventions HOT 3
- zip: last_modification_date and last_modification_time are mislabeled or swapped HOT 2
- gzip files can contain multiple concatenated gzips HOT 8
- Investigate Data Format Description Language (DFDL) HOT 4
- Consider relicensing internal/mathex/float80.go HOT 3
- Enhancing Stream Processing Capabilities for Real-Time Binary Data Analysis HOT 1
- Winget support HOT 1
- readline upgrade HOT 5
- Pre-built binaries from release page are flagged as malware by virustotal.com HOT 3
- Homebrew formula? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fq.