tmux Sanitises Window Names Against Injection
clean_name() is tmux’s one defence against name-based injection, and it works by encoding rather than filtering: it stores names in a form where the dangerous characters…
All posts published on this site.
Everything published here, newest first.
clean_name() is tmux’s one defence against name-based injection, and it works by encoding rather than filtering: it stores names in a form where the dangerous characters…
oid is an unsigned int in a Datum, parsed by a strtoul-based helper that accepts hex, octal, and even a minus sign — and its sibling oid8 is becoming the TOAST chunk-id type.
ncurses assumes one application owns one terminal. A multiplexer owns N screens and has to render them into one terminal without the terminal knowing.
float8 is eight raw IEEE bytes in a Datum — but every op is overflow-checked, NaN equals itself and sorts above everything, and a GUC picks how many digits print.
palloc quantises sizes to powers of two, keeps eleven freelists, carves dying blocks into reusable chunks, and recycles memory contexts so a per-tuple context costs zero mallocs.