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

Fix os.ReadFile OOM #8

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Fix os.ReadFile OOM #8

merged 1 commit into from
Nov 7, 2023

Conversation

Parzival-3141
Copy link
Collaborator

Closes #1
Turns out we weren't handling EOF properly in our read syscall implementation. This fix allows allows the EOF to propagate. Go's interprets a read return value of 0, nil to be EOF.

Closes #1
Turns out we weren't handling EOF properly in our `read` syscall implementation.
This fix allows allows the EOF to propagate. Go's interprets a `read` return
value of `0, nil` to be EOF.
@progrium
Copy link
Contributor

progrium commented Nov 7, 2023

🔥 nice work

@progrium progrium merged commit 3435d7f into main Nov 7, 2023
@Parzival-3141 Parzival-3141 deleted the cat-fix branch November 22, 2023 23:09
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.

cat / os.ReadFile from shell crashes with out of memory
2 participants