~/talk

Decoding the Frustrations and Vulnerabilities of Modern Text Processing

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python]
slides:none on file

Covers concrete failure modes and fixes: Python 3 treats text as Unicode so printing raw bytes breaks common exploit payloads and the pragmatic fix is sys.stdout.buffer.write rather than hacking encodings; shows how encoding choices and the surrogateescape error handler preserve round‑trip byte sequences; demonstrates a format string exploit revealing Flask secret_key by abusing str.format on user input; enumerates f‑string limits (no globals/locals, limited nesting, backslash issues) and points to PEP proposals for safer interpolations.

AI-written summary · about

  1. 0:00Introduction to text processing
  2. 1:20Bytes versus Unicode strings
  3. 4:12Security and buffer overflows
  4. 6:58Encoding and error handling
  5. 11:04String format vulnerabilities
  6. 16:40F-string mechanics and risks
  7. 23:12Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.