-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling Elf.ksy parsing exceptions #754
Comments
Oops, github rejected my attachment, lets try this instead. |
elf.ksy actually currently fails to compile at all now with this error:
So I assume that you're using old ksc v0.8, which allows these duplicate keys. In general, if it's a valid source ELF file (and it looks like it's a valid file), then any exception is an indicator of a problem in format specification. You should never get exceptions during parsing if the source file is valid. So, I would start with:
|
To put it in perspective, the issue kaitai-io/kaitai_struct_formats#279 resolved the problem with duplicate keys, but I tested the |
Just a heads up - the bunzip2 executable which is initially open in the web IDE has the same problem. You can see the error in the console, and when trying to export the header to JSON (which doesn't work). |
Looking at the screenshot: the section has type NOBITS meaning that there is no data associated with it and |
Also see kaitai-io/kaitai_struct_formats#517 |
Should have been fixed now: kaitai-io/kaitai_struct_formats@4d74a6c |
I confirm that the |
Hello, I'm trying to integrate kaitai into my application, if I try to parse
/bin/ls
from Ubuntu 18.04 withElf.ksy
, I get an exception. I verified the same thing happens on the Web IDE.I guess it's not clear to me if I should be handling this error, or if it's a bug?
To reproduce, load the attached binary (It's an original unmodified binary, you could also get it from here.
Then use the Web IDE to expand
Elf.header.sectionHeaders[25].body
.The error is:
The text was updated successfully, but these errors were encountered: