Skip to content

Conversation

@memreflect
Copy link
Contributor

GNU Readline 4.3 on stock OpenBSD 7.6 uses putenv(), but the allocated string envname in putenv() was not properly null-terminated, leading to readline trying to set incorrect environment variable names like LINES{garbage bytes}.

GNU Readline 4.3 on stock OpenBSD 7.6 uses putenv(),
but the value of envname was not properly null-terminated,
leading to setting the incorrect environment variable name.
@memreflect memreflect force-pushed the putenv-fix branch 2 times, most recently from 3b8492c to 9948e44 Compare April 21, 2025 02:19
@jpco jpco added the bug label Apr 21, 2025
@jpco
Copy link
Collaborator

jpco commented Apr 21, 2025

Good catch.

@jpco jpco merged commit 81ca7ae into wryun:master Apr 21, 2025
@memreflect memreflect deleted the putenv-fix branch July 31, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants