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

STDERRED_BLACKLIST smashes stack #93

Open
BrandonStaab opened this issue Dec 27, 2024 · 0 comments
Open

STDERRED_BLACKLIST smashes stack #93

BrandonStaab opened this issue Dec 27, 2024 · 0 comments

Comments

@BrandonStaab
Copy link

Version: stderred-git v1.0.r49.g97a51c9-1
Kernel: 6.12.6-zen1-1-zen
OS: Arch

Related issues: #85

Unload everything:

unset LD_PRELOAD
unset STDERRED_ESC_CODE
unset STDERRED_BLACKLIST
gpg --list-keys

GPG works as expected.

Next set STDERRED_BLACKLIST

export STDERRED_BLACKLIST="^(app)$"
export LD_PRELOAD="/usr/lib/libstderred.so"
gpg --list-keys

The stack gets smashed:

*** stack smashing detected ***: terminated
zsh: IOT instruction (core dumped)  gpg --list-keys

Finally unset STDERRED_BLACKLIST but keep libstderred.so

unset STDERRED_BLACKLIST
gpg --list-keys

GPG works as expected.

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

1 participant