Skip to content
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

zstd compressed debug sections are not parsed #5984

Closed
trumank opened this issue Oct 8, 2024 · 1 comment
Closed

zstd compressed debug sections are not parsed #5984

trumank opened this issue Oct 8, 2024 · 1 comment
Assignees
Labels
DebugInfo: DWARF Effort: Low Issue should take < 1 week Impact: Medium Issue is impactful with a bad, or no, workaround Type: Enhancement Issue is a small enhancement to existing functionality

Comments

@trumank
Copy link

trumank commented Oct 8, 2024

Version and Platform (required):

  • Binary Ninja Version: 4.2.6168-dev Personal, cb0f14d8
  • OS: arch
  • OS Version: unknown
  • CPU Architecture: x86_64

Bug Description:
Binary Ninja does not read/parse debug sections compressed with zstd.

Steps To Reproduce:

#include <iostream>
#include <ostream>
#include <string>

struct Test {
  std::string msg;
};

int main() {
  Test t{.msg = "Hello, World!"};
  std::cout << t.msg << std::endl;
  return 0;
}
g++ hello.cpp -g -fuse-ld=mold -Wl,--compress-debug-sections=zstd -o hello

Open hello in Binary Ninja and observe there is no struct named Test defined. Change the compression type to zlib or remove entirely and it will appear.

hello.zip

Additional Information:
I ran into this with my own tools using the object crate, perhaps related: gimli-rs/object#730

@negasora negasora added Effort: Low Issue should take < 1 week Impact: Medium Issue is impactful with a bad, or no, workaround DebugInfo: DWARF Type: Enhancement Issue is a small enhancement to existing functionality labels Oct 8, 2024
@negasora negasora self-assigned this Oct 8, 2024
@negasora negasora added this to the Frogstar milestone Oct 8, 2024
@negasora
Copy link
Member

negasora commented Oct 8, 2024

Fixed in 4.2.6172-dev

@negasora negasora closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DebugInfo: DWARF Effort: Low Issue should take < 1 week Impact: Medium Issue is impactful with a bad, or no, workaround Type: Enhancement Issue is a small enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants