fix inflate wrapper cycle condition issue #29

master
nik 2014-07-05 21:54:46 -03:00
rodzic 87a6a88255
commit c449f4ff69
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -225,7 +225,7 @@ Inflate.prototype.push = function(data, mode) {
}
}
}
} while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);
} while ((strm.avail_in > 0) && status !== c.Z_STREAM_END);
if (status === c.Z_STREAM_END) {
_mode = c.Z_FINISH;

Wyświetl plik

@ -108,7 +108,7 @@ describe('Dummy push (force end)', function () {
describe('Edge condition', function () {
it.skip('should be ok on buffer border', function () {
it('should be ok on buffer border', function () {
var i;
var data = new Uint8Array(1024 * 16 + 1);