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

NASM: Fix bug in str when appending empty arrays #422

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

bendudson
Copy link
Contributor

The slurp function can produce strings which end with an empty Array, if the input file is a multiple of the Array size. When appending such a string, string_append_string would keep reading past the end of the string, and continue until it ran out of memory. This fix adds a check for empty Array.

Partly fixes issue #418

The `slurp` function can produce strings which end with an empty
Array, if the input file is a multiple of the Array size. When
appending such a string, `string_append_string` would keep reading
past the end of the string, and continue until it ran out of
memory. This fix adds a check for empty Array.
@kanaka kanaka merged commit 7fffd84 into kanaka:master Jul 17, 2019
@kanaka
Copy link
Owner

kanaka commented Jul 17, 2019

Thanks @bendudson. Merged.

@bendudson bendudson deleted the nasm-fix branch February 9, 2020 10:46
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.

2 participants