Skip to content

Commit 00d350d

Browse files
committed
Yes, sometimes the output can be bigger than the input is the entropy is very
high.
1 parent cccbd30 commit 00d350d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/python-lz4.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ static PyObject *py_lz4_uncompress(PyObject *self, PyObject *args) {
119119
PyErr_Format(PyExc_ValueError, "corrupt input at byte %d", -osize);
120120
Py_CLEAR(result);
121121
}
122-
else if (osize < source_size - hdr_size) {
123-
PyErr_SetString(PyExc_ValueError, "decompression incomplete");
124-
Py_CLEAR(result);
125-
}
126122
}
127123

128124
return result;

0 commit comments

Comments
 (0)