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

COFF overflow/underflow issue with symbol.name() method #349

Open
invlpg opened this issue Dec 23, 2022 · 1 comment
Open

COFF overflow/underflow issue with symbol.name() method #349

invlpg opened this issue Dec 23, 2022 · 1 comment

Comments

@invlpg
Copy link

invlpg commented Dec 23, 2022

overflow/underflow issue with this line of code it seems:

https://docs.rs/goblin/latest/src/goblin/pe/symbol.rs.html#240

stack backtrace:
   0: rust_begin_unwind
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
   2: core::panicking::panic
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:115:5
   3: goblin::pe::symbol::Symbol::name_offset::{{closure}}
             at /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/goblin-0.6.0/src/pe/symbol.rs:240:36
   4: core::option::Option<T>::map
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/option.rs:925:29
   5: goblin::pe::symbol::Symbol::name_offset
@m4b
Copy link
Owner

m4b commented Jan 1, 2023

Hmmm, can you provide the binary for repro? Or if you have an idea of how to fix this, PRs welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants