Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

combineChunks: prevent reading the output file#4

Open
maclav3 wants to merge 2 commits into
patdek:masterfrom
maclav3:master
Open

combineChunks: prevent reading the output file#4
maclav3 wants to merge 2 commits into
patdek:masterfrom
maclav3:master

Conversation

@maclav3
Copy link
Copy Markdown

@maclav3 maclav3 commented Apr 25, 2016

In combineChunks(), the output file can be read and written into itself. Moved the filename check higher to prevent this

In combineChunks(), the output file can be read and written into itself. Moved the filename check higher to prevent this
@maclav3
Copy link
Copy Markdown
Author

maclav3 commented Apr 25, 2016

#1 is a partial duplicate, but it imports an unknown package "http" (in addition to "net/http") and doesn't compile on go1.6

prevent 10, 11, 12 coming right after 1 and so on.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant