parser: Fix here-doc EOF marker bug with negative chars
commit0c55f437598a911fe449871641ed6466e9eeaba8
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 May 2024 14:41:00 +0000 (24 22:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 1 Jun 2024 04:44:06 +0000 (1 12:44 +0800)
treec6a23329f992c85ee319434ccc855ded81c4571c
parent176e792f7dc915bb096d14d7abb70f11ded9abb7
parser: Fix here-doc EOF marker bug with negative chars

The here-document EOF marker parsing code incorrectly treats all
negative bytes as EOF instead of just PEOF.  Fix this by testing
against PEOF.

Fixes: 81daadfce8d5 ("[PARSER] Removed noexpand/length check on eofmark")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/parser.c