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

awkgetline: do not access unitialized data on EOF #134

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

millert
Copy link
Contributor

@millert millert commented Nov 1, 2021

getrec() returns 0 on EOF and leaves the contents of buf unchanged.
Fixes #133.

getrec() returns 0 on EOF and leaves the contents of buf unchanged.
Fixes onetrueawk#133.
@millert millert changed the base branch from master to staging November 1, 2021 18:07
@millert millert mentioned this pull request Nov 1, 2021
bob-beck pushed a commit to openbsd/src that referenced this pull request Nov 1, 2021
getrec() returns 0 on EOF and leaves the contents of buf unchanged.
From onetrueawk/awk#134
@plan9 plan9 merged commit 1debe19 into onetrueawk:staging Nov 4, 2021
rbm01 pushed a commit to rbm01/OpenBSD-src that referenced this pull request Nov 6, 2021
getrec() returns 0 on EOF and leaves the contents of buf unchanged.
From onetrueawk/awk#134
@millert millert deleted the getrec_uninitialized branch September 1, 2022 14:56
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.

getline corrupts string
2 participants