You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: MathObfuscationConverter generates corrupted equations for carriage returns and tabs #4059
MathObfuscationConverter converts text into algebraic equations of the form X = nX - (n - 1)X. In pyrit/converter/math_obfuscation_converter.py, the character loop only treats \n and " " as delimiters.
When input prompts contain Windows-style CRLF line breaks (\r\n), standalone carriage returns (\r), or horizontal tabs (\t):
Carriage returns (\r): The loop fails to recognize \r as whitespace, generating an algebraic equation line for control character 0x0D (e.g. \r = 4\r - 3\r). When logged or displayed in terminals/consoles, the unescaped carriage return resets the cursor position to column 0, overwriting preceding terminal output.
Horizontal tabs (\t): Generates an equation line (e.g. \t = 3\t - 2\t) rather than treating the tab as a whitespace word separator.
Activity
FIX: Normalize newlines and tabs in MathObfuscationConverter (#4059) (#…