Skip to content

Commit

Permalink
Fix isEOFFound in SignatureParser
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 6, 2024
1 parent 2fd9eff commit 399bf6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/verapdf/parser/SignatureParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private boolean isEOFFound(byte[] buffer) throws IOException {
long pointer = this.getSource().getOffset();
this.getSource().unread(2);
int byteBeforeEOF = this.getSource().peek();
while (!BaseParser.isLF(byteBeforeEOF)) {
while (!BaseParser.isLF(byteBeforeEOF) && !BaseParser.isCR(byteBeforeEOF)) {
this.getSource().unread();
byteBeforeEOF = this.getSource().peek();
if (byteBeforeEOF != CharTable.ASCII_SPACE) {
Expand Down

0 comments on commit 399bf6d

Please sign in to comment.