Files
ipxe/src
Michael Brown d86e86dff8 [tls] Guarantee that receive data buffer list is non-empty
Since commit 72db146 ("[tls] Split received records over multiple I/O
buffers"), receive record processing has worked by allocating an I/O
buffer list with exactly enough combined tailroom to hold the incoming
record.

A zero-length record is not permitted by the protocol (and is
impossible when a non-plaintext cipher is in use due to the extra
space reserved at the start of the buffer list to accommodate the IV),
but would currently result in an empty I/O buffer list.

Fix by ensuring that at least one buffer is always allocated even for
a zero total length.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2026-08-25 00:07:06 +01:00
..
2010-05-29 23:49:47 +01:00