badwords: catch and fix more variants of NN-bit

Closes #20304
This commit is contained in:
Viktor Szakats 2026-01-11 14:50:27 +01:00
parent 60ab58a8a5
commit 4651d4c76b
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
20 changed files with 29 additions and 32 deletions

View file

@ -20,7 +20,7 @@ Mime
smtp
</server>
<name>
SMTP multipart with 7bit encoder error
SMTP multipart with 7-bit encoder error
</name>
<stdin crlf="yes">
From: different

View file

@ -2633,7 +2633,7 @@ if(!$randseed) {
close($curlvh) || die "could not get curl version!";
# use the first line of output and get the md5 out of it
my $str = md5($c[0]);
$randseed += unpack('S', $str); # unsigned 16 bit value
$randseed += unpack('S', $str); # unsigned 16-bit value
}
srand $randseed;

View file

@ -342,7 +342,7 @@ static CURLcode test_unit1658(const char *arg)
"h2"
"\x00\x03" /* RR (3 == PORT) */
"\x00\x03" /* data size */
"\x12\x34\x00", /* 24 bit port number! */
"\x12\x34\x00", /* 24-bit port number */
17,
"r:43|"
},
@ -356,7 +356,7 @@ static CURLcode test_unit1658(const char *arg)
"h2"
"\x00\x03" /* RR (3 == PORT) */
"\x00\x01" /* data size */
"\x12", /* 8 bit port number! */
"\x12", /* 8-bit port number */
15,
"r:43|"
},