From e2e60217e9507e68ddaf0c7de5fd3ca909247ed1 Mon Sep 17 00:00:00 2001 From: Chrysostomos Kolovos Date: Mon, 22 Feb 2021 12:56:12 +0200 Subject: [PATCH] Fix Licence Text && Fix while loop issue --- .../itext/forms/FlatteningWithNullKidElementTest.cs | 2 +- .../itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/itext.tests/itext.forms.tests/itext/forms/FlatteningWithNullKidElementTest.cs b/itext.tests/itext.forms.tests/itext/forms/FlatteningWithNullKidElementTest.cs index 9938585289..02e78c987b 100644 --- a/itext.tests/itext.forms.tests/itext/forms/FlatteningWithNullKidElementTest.cs +++ b/itext.tests/itext.forms.tests/itext/forms/FlatteningWithNullKidElementTest.cs @@ -16,7 +16,7 @@ OF THIRD PARTY RIGHTS or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License -along with this program; if not, see http://www.gnu.org/licenses or write tod +along with this program; if not, see http://www.gnu.org/licenses or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, 02110-1301 USA, or download the license from the following URL: http://itextpdf.com/terms-of-use/ diff --git a/itext/itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs b/itext/itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs index cd7a890566..c8d3623a14 100644 --- a/itext/itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs +++ b/itext/itext.kernel/itext/kernel/pdf/filters/FlateDecodeFilter.cs @@ -259,7 +259,7 @@ protected internal static byte[] FlateDecodeInternal(byte[] @in, bool strict, Me byte[] b = new byte[strict ? 4092 : 1]; try { int n; - while ((n = zip.Read(b)) >= 0) { + while ((n = zip.Read(b)) > 0) { @out.Write(b, 0, n); } zip.Dispose();