Control: tags -1 + patch Patch that fixes this thus: $ printf '=a' | ./qprint -d | hd Error: partial equal sign escape "=a" at byte 0 (0x0) of input. 000000 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:48:08 +0100 Subject: Fix error message with truncated escape sequence (Closes: #773595)
--- qprint.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qprint.c b/qprint.c index 35834a1..df5fe45 100644 --- a/qprint.c +++ b/qprint.c @@ -578,6 +578,22 @@ int n1,n2; n1= hex_to_nybble(ch1); ch2= read_decode_character(); +if(ch2 == EOF) { + if(errcheck) + fprintf(stderr, + "Error: partial equal sign escape \"=%c\" at byte %" + + FILE_ADDRESS_FORMAT_LENGTH + + "u (0x%" + + FILE_ADDRESS_FORMAT_LENGTH + + "X) of input.\n", + ch1, decode_input_stream_position - 2, decode_input_stream_position - 2); + decode_errors++; + break; +} n2= hex_to_nybble(ch2); if(n1==EOF||n2==EOF){ /*38:*/
signature.asc
Description: PGP signature