Skip to content

Commit

Permalink
Merge branch 'integration' into merge/bl-dpt/logging
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwilson authored Apr 7, 2022
2 parents cf54ae7 + e029b33 commit fe37ef8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,12 @@ private static void readUTFLanguageCode (Tokenizer tok) throws IOException
StringBuilder sb = new StringBuilder();
for (;;) {
int ch = tok.readChar1(true);

// If we get -1, then we've hit an EOF without proper termination of
// the literal. Throw an exception.
if (ch < 0) {
throw new EOFException (MessageConstants.PDF_HUL_10.getMessage()); // PDF-HUL-10
}
if (ch == ESC) {
break;
}
Expand Down

0 comments on commit fe37ef8

Please sign in to comment.