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

Limit maximum size of uploads to be viewed as code #63

Merged
merged 1 commit into from Feb 27, 2018

Conversation

tribut
Copy link
Contributor

@tribut tribut commented Feb 27, 2018

When using "view code" the whole file is read into RAM before being echoed back to the user. When large uploads are allowed (e.g. in the same order of magnitude as the available RAM) this can lead to performance problems and can easily be abused by a malicious user.

This is a breaking change - if a server operator wants to maintain the unlimited behaviour he would have to set ViewLimit >= SizeLimit.

When using "view code" the whole file is read into RAM before being
echoed back to the user. When large uploads are allowed (e.g. in the
same order of magnitude as the available RAM) this can lead to
performance problems and can easily be abused by a malicious user.

This is a breaking change - if a server operator wants to maintain the
unlimited behaviour he would have to set ViewLimit >= SizeLimit.
@Depado Depado merged commit 6a73d99 into Depado:master Feb 27, 2018
@Depado
Copy link
Owner

Depado commented Feb 27, 2018

Thanks a lot for your contributions on goploader ! I appreciate that ! 👍
thanks

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.

None yet

2 participants