Skip to content

Commit e2e6021

Browse files
committed
Fix Licence Text && Fix while loop issue
1 parent d90b8ba commit e2e6021

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itext.tests/itext.forms.tests/itext/forms/FlatteningWithNullKidElementTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OF THIRD PARTY RIGHTS
1616
or FITNESS FOR A PARTICULAR PURPOSE.
1717
See the GNU Affero General Public License for more details.
1818
You should have received a copy of the GNU Affero General Public License
19-
along with this program; if not, see http://www.gnu.org/licenses or write tod
19+
along with this program; if not, see http://www.gnu.org/licenses or write to
2020
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
2121
Boston, MA, 02110-1301 USA, or download the license from the following URL:
2222
http://itextpdf.com/terms-of-use/

itext/itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected internal static byte[] FlateDecodeInternal(byte[] @in, bool strict, Me
259259
byte[] b = new byte[strict ? 4092 : 1];
260260
try {
261261
int n;
262-
while ((n = zip.Read(b)) >= 0) {
262+
while ((n = zip.Read(b)) > 0) {
263263
@out.Write(b, 0, n);
264264
}
265265
zip.Dispose();

0 commit comments

Comments
 (0)