diff options
| author | Pranav Tilak <[email protected]> | 2026-08-27 10:41:38 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2026-09-04 12:44:20 +0200 |
| commit | 21114d5463956e31b18be0b199dd47f404696fc7 (patch) | |
| tree | 6135987c9bb8bc77eb56cb2c653c24187755e32a /contrib/apps/httpserver/README | |
| parent | cf9c966849fc5bdc0adc2884cbc944b854a68750 (diff) | |
fpga: xilinx: Check bitstream length against the supplied buffer
fpga_loadbitstream() receives a size argument describing the length of
the caller's buffer but never uses it. All header offsets are read from
the bitstream, including the 32-bit data length at tag 0x65, which is
passed to fpga_load() unmodified and becomes the DMA transfer length.
A header declaring more data than the caller supplied makes the DMA
read beyond the end of the buffer.
Reject the bitstream if its header and the data it declares do not
fit within size.
Fixes: c26acc1a43b3 ("Remove bit swapping in Xilinx Spartan bitfile loading")
Signed-off-by: Pranav Tilak <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'contrib/apps/httpserver/README')
0 files changed, 0 insertions, 0 deletions
