mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Properly feed an EOS token to the push down automata in OpenPgpMessageInputStream.read()
This commit is contained in:
parent
1e33408098
commit
b0caa95378
1 changed files with 1 additions and 0 deletions
|
@ -486,6 +486,7 @@ class OpenPgpMessageInputStream(
|
||||||
override fun read(): Int {
|
override fun read(): Int {
|
||||||
if (nestedInputStream == null) {
|
if (nestedInputStream == null) {
|
||||||
if (packetInputStream != null) {
|
if (packetInputStream != null) {
|
||||||
|
syntaxVerifier.next(InputSymbol.END_OF_SEQUENCE)
|
||||||
syntaxVerifier.assertValid()
|
syntaxVerifier.assertValid()
|
||||||
}
|
}
|
||||||
return -1
|
return -1
|
||||||
|
|
Loading…
Reference in a new issue