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

Dll with hyper crashes in reflective loading #3847

Open
hueta opened this issue Feb 20, 2025 · 0 comments
Open

Dll with hyper crashes in reflective loading #3847

hueta opened this issue Feb 20, 2025 · 0 comments
Labels
C-bug Category: bug. Something is wrong. This is bad!

Comments

@hueta
Copy link

hueta commented Feb 20, 2025

Version
All versions

Platform
x86_x64 windows

Description
I guess thats a rather weird bug, but maybe someone has a clue
if i make a windows dll with hyper in dependecies, upon reflective loading this dll into memory, app crashes
doest even need to use hyper in a code, just having it in dependecies will break app upon calling dll entry point
i tried to use "ffi" feature with corresponding flag, in this case app doesnt crash, but dll not running

without hyper in dependecies all is ok

https://github.com/exploits-forsale/solstice/tree/main/crates/solstice_loader i use this reflective loader with just template dll without any code

tried to compile with msvc and gnu targets without difference

i have spent a lot of time on this and will be grateful if someone has a clue about what exactly causing this

@hueta hueta added the C-bug Category: bug. Something is wrong. This is bad! label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

1 participant