-
Notifications
You must be signed in to change notification settings - Fork 977
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
EndOfStream bug in LZWInputStream #63
Comments
This is a little tricky in that the code was dumped in by me but the licensing for the source code was never sorted out. It was never included in the project and never tested. It was in the todo list which never got done The fix itself is trivial so could be done but the licensing issue may be harder to sort out. |
I see: you do know it's included in the nuget package? On Thursday, 8 January 2015, John Reilly notifications@github.com wrote:
|
No I had nothing to so with the nuget package On Fri, Jan 9, 2015 at 9:37 PM, mr-miles notifications@github.com wrote:
|
To me @jfreilly (please chime in) the license comment seems like the code file's origins were never of the proper license (and the file was intended for reference initially). |
The code originates from an email whose origins are unknown. |
Then, going forward, should we just delete this code completely? |
Yes it's the only real option I think. Cheers john. On Sat, 16 Apr 2016 15:00 Neil McNeight notifications@github.com wrote:
|
Perhaps not. After a bit of digging through Google, it would appear I've found the source of the source. Now, if the magic incantation of @gburca works correctly, then perhaps we may even get this bit of code relicensed to MIT as per issue #103. -Neil |
Ok sounds cool, nice digging. |
I'm fine with releasing it under MIT. What's the best way of doing that? Should I modify the license and send a pull request? |
No one has relinquished copyright. The main contributors, myself included, have signed a Joint Copyright Assignment, under which each contributor continues to own the copyright on their contribution. @christophwille has been leading the effort to relicense to MIT. We have an open issue for obtaining the proper rights in order to relicense here. Up until now, the only thing he has required from patch contributors (>5 lines) is the following statement: I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License. With all that said, your contribution is fairly sizeable. I don't know where the line is between needing a signed JCA and simply adding the above statement. Before I do anything, I'd prefer that Chris respond first. -Neil |
Even in SharpDevelop, PRs only require that paragraph. Contributors with full commit permission to the repository are asked for the JCA, simply so we have full documentation on their work (otherwise it would be kind of hard to track). |
If I am understanding it correctly then, I think what we would like is for @gburca to fork, make a slight modification to the three LZW files, and the submit a PR with the statement in the comment. If we wanted to be pedantic about it, we could delete the files in our repository, and then have him submit a PR to include them again. Either way, the repository history will remember and track his contribution, he will have verified his claim to the code, maintaining his copyright on it, and we will be able to include it under the MIT license. Simple enough, eh? |
Please let us know if you would like to switch your code to the MIT license and contribute to the project. If we don't receive a response from you soon, your code will be deleted from the repository and this issue will be closed out. -Neil |
With the change in license to MIT, as well as the new copyright statement ("Copyright © 2000-2016 SharpZipLib Contributors"), I am going to consider the statement above by @gburca that "While I'm OK with licensing the code under MIT, I'm NOT OK with relinquishing the copyright." as permission to include the LZW code as part of the SharpZipLib distribution. Gabriel, Thanks for taking the time to respond, and thank you for your contribution. -Neil |
Hi,
At the end of the stream, LZWInputStream returns -1 as the bytes read, which makes any stream reader throw an exception. The ReadToEnd() call on the streamreader always throws as per this test (with any LZW compressed file):
The same test using this class can successfully read the stream:
It took me ages to work out what was going on ... and I found there is a pull request to fix this:
#10
Please could it be merged? I can contribute a test for this if that is currently a blocker
The text was updated successfully, but these errors were encountered: