Control: tags -1 + patch

Patch that fixes this thus:
        $ printf '=m4' | ./qprint -d | hd
        Error: bad equal sign escape "=m4" at byte 0 (0x0) of input.
        000000
        $ printf '=af=m4=af' | ./qprint -d | hd
        Error: bad equal sign escape "=m4" at byte 3 (0x3) of input.
        000000 af af                                            >..<
        000002
below. I'll be uploading it in an NMU to mentors in a bit.
From: =?utf-8?b?0L3QsNCx?= <nabijaczlew...@nabijaczleweli.xyz>
Date: Mon, 13 Jan 2025 09:52:48 +0100
Subject: Don't output bogus byte for invalid escape sequence (Closes:
 #773594)

---
 qprint.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qprint.c b/qprint.c
index df5fe45..b893597 100644
--- a/qprint.c
+++ b/qprint.c
@@ -645,7 +645,8 @@ decode_input_stream_position-3);
 #line 555 "./qprint.w"
 ;
 decode_errors++;
-}
+ch = EOF;
+} else
 ch= (n1<<4)|n2;
 }
 

Attachment: signature.asc
Description: PGP signature

Reply via email to