adding filtering of strings for control chars in blind inference mode (way to handle either errornous values, or either binary data)

This commit is contained in:
Miroslav Stampar
2011-01-05 10:25:07 +00:00
parent c83e9f6ca5
commit 7ae5192070
3 changed files with 14 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ DUMP_STOP_MARKER = "__STOP__"
PAYLOAD_DELIMITER = "\x00"
CHAR_INFERENCE_MARK = "%c"
READABLE_CHAR_REGEX = r'[\ -~]'
NON_CONTROL_CHAR_REGEX = r'[^\x00-\x1f]'
# coefficient used for a time-based query delay checking (must be >= 7)
TIME_STDEV_COEFF = 10