httpd: add a response writer and use it for files
The writer sends the status line, the headers with Connection and
Content-Length, then the body. It drops the body for HEAD and for the
status codes that do not allow one.
No functional change.
feedback and ok rsadowski@ and kirill@ as part of a bigger diff
uaudio: Stop per-channel control parsing at descriptor end
Certain devices provide fewer per-channel control bitmaps in their
feature units than their source has channels.
Reported and fix tested by Andrew Kloet <andrew at kloet.net>
ok ratchov@
check for expired/signal-deleted keys before processing each request
rather than once per ppoll() round. Avoids keys being left available
for use if multiple messages were read in one mainloop iteration.
Anthropic ANT-2026-SHP0BXZS
increase maximum message length for PKCS#11 helper to slightly
over 256KB. Avoids helper fatal() when a certificate over 10KB
is added.
Anthropic ANT-2026-RYQEXQ8K
Let's try this again:
limit the number and total size of packets that we will queue
while KEX is running. Avoids possible DoS when KEX stalls and local
processes continue generating channel data for too long
Anthropic ANT-2026-Q1334JFN but with a separate threshold after which
the channels stop producing packets too
Now with at least one fewer redundant and one fewer wrong test to break
mux.
revert:
limit the number and total size of packets that we will queue
while KEX is running. Avoids possible DoS when KEX stalls and local
processes continue generating channel data for too long
Anthropic ANT-2026-Q1334JFN but with a separate threshold after which
the channels stop producing packets too
Causes hangs with multiplexed connections. Needs further debugging
run local sftp "lls" command using makeargv()+glob()+exec rather
than system(); avoids situation where a user could do a tab
expansion in a directory with adversarial content and end up
executing a commandline with backticks, etc in it
Anthropic ANT-2026-QFGM82BB
limit the number and total size of packets that we will queue
while KEX is running. Avoids possible DoS when KEX stalls and local
processes continue generating channel data for too long
Anthropic ANT-2026-Q1334JFN but with a separate threshold after which
the channels stop producing packets too
reserve 32 fds that forwardings are not allowed to use
avoids fd exhaustion causing a mux socket from being accessible
for control messages.
Anthropic ANT-2026-P86OLVI7
When emulating fcmp of two NaN operands, be sure to raise the invalid
exception if the second one is a signaling Nan.
Bug reported by Izumi Tsutsui, thanks!