Properly feed an EOS token to the push down automata in OpenPgpMessageInputStream.read()
This commit is contained in:
parent
1e33408098
commit
b0caa95378
|
@ -486,6 +486,7 @@ class OpenPgpMessageInputStream(
|
|||
override fun read(): Int {
|
||||
if (nestedInputStream == null) {
|
||||
if (packetInputStream != null) {
|
||||
syntaxVerifier.next(InputSymbol.END_OF_SEQUENCE)
|
||||
syntaxVerifier.assertValid()
|
||||
}
|
||||
return -1
|
||||
|
|
Loading…
Reference in New Issue