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
(cherry picked from commit
b281199e9aa1d2d66ac35d1f53358afca8c44a13)
// SCLogDebug("space as part of binary string");
}
else if (str[i] != ',') {
- SCLogError(SC_ERR_INVALID_SIGNATURE, "Invalid hex code in "
- "content - %s, hex %c. Invalidating signature.", str, str[i]);
+ SCLogError(SC_ERR_INVALID_SIGNATURE,
+ "Invalid hex code in "
+ "content - %s, hex %c. Invalidating signature.",
+ contentstr, str[i]);
goto error;
}
} else if (escape) {