Skip to content

Conversation

@jonrebm
Copy link
Contributor

@jonrebm jonrebm commented Dec 14, 2025

Repeated call to ios->exit(ios); was observed as used after free using asan. Only call it once: In the exit handler.

Always call the exit handler and check there whether listenonly is set and there skip resetting the terminal if so.

Do not reset the terminal elsewhere.

Do not call the exit handler from the quit command, call exit instead.

@jonrebm jonrebm mentioned this pull request Dec 14, 2025
@jonrebm
Copy link
Contributor Author

jonrebm commented Jan 14, 2026

Has anyone taken a look at this one already? @ukleinek or @a3f maybe?

Repeated call to ios->exit(ios); was observed as used after free using
asan. Only call it once: In the exit handler.

Always call the exit handler and check there whether listenonly is set
and there skip resetting the terminal if so.

Do not reset the terminal elsewhere.

Do not call the exit handler from the quit command, just call exit,
invoking the signal handler too.

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
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

Successfully merging this pull request may close these issues.

1 participant