We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085ea7f commit d90b8baCopy full SHA for d90b8ba
itext/itext.io/itext/io/font/AdobeGlyphList.cs
@@ -64,7 +64,7 @@ static AdobeGlyphList() {
64
MemoryStream stream = new MemoryStream();
65
while (true) {
66
int size = resource.Read(buf);
67
- if (size < 0) {
+ if (size <= 0) {
68
break;
69
}
70
stream.Write(buf, 0, size);
itext/itext.io/itext/io/font/Type1Parser.cs
@@ -90,7 +90,7 @@ public virtual RandomAccessFileOrArray GetMetricsFile() {
90
91
92
int read;
93
- while ((read = resource.Read(buf)) >= 0) {
+ while ((read = resource.Read(buf)) > 0) {
94
stream.Write(buf, 0, read);
95
96
buf = stream.ToArray();
0 commit comments