test: do not output non ascii character

The unit test for content |aa bz| transforms in place the string
str to replace the 2 characters aa by one character 0xaa
Then, when z is not recognized as a valid hexadeicmal character,
the whole modified string is printed out, inclusing the non-ascii
0xaa

Ticket: #5558
pull/8444/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 7a47eabf82
commit b281199e9a

@ -151,7 +151,7 @@ int DetectContentDataParse(const char *keyword, const char *contentstr,
else if (str[i] != ',') {
SCLogError("Invalid hex code in "
"content - %s, hex %c. Invalidating signature.",
str, str[i]);
contentstr, str[i]);
goto error;
}
} else if (escape) {

Loading…
Cancel
Save