
v0.39: Grademe is back in your terminal.
Try the CLI betaRepair the length count so each backslash escape folds into a single character.
January 2021. Qualys researchers reveal Baron Samedit, a bug that sat in sudo for almost ten years and let any local user become root. The heart of it was sudo mishandling backslash escapes while measuring a command line: it got the decoded length wrong and overran a buffer. Here is that measurement, done safely. A backslash escapes the next character, so an escape pair counts as one, and a lone backslash at the very end must not send you reading past the string.
decoded_len("abc")Expected result
3For your own tracking. Tests grade your code.
decoded_len("x\\ny")Expected result
3decoded_len("a\\")Expected result
2Expected files
unescape.cAllowed functions
None. Write every helper yourself.
