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

Update http.c #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

strong46066999
Copy link

http template page read only once

http template page read only once
}

page.buff[written] = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're also not checking for overflows - at that point, you might be corrupting memory if the file is too large.

@mhaas
Copy link
Contributor

mhaas commented Jan 30, 2016

Thank you for your contribution. That's a nice optimization. I have added some notes regarding your use of static buffers. I'm afraid we can't accept this as-is.

@mhaas mhaas self-assigned this Jan 30, 2016
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