diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-02-23 21:15:35 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-02-26 16:17:43 +0100 |
commit | 9c081a7eabd4e5f54bd692df722705bc5ec57891 (patch) | |
tree | bed684ad947097a349e3bec8827d45ef6b33e05b /drivers/ddr/marvell/a38x/ddr_ml_wrapper.h | |
parent | 95cacc86f2f4baa2d86f68a63baa9e8e797e4e46 (diff) |
efi_loader: limit output length for VenHw, VenMedia
VenHw and VenMedia device path nodes may carry vendor defined data of
arbitrary length. When converting a device path node to text ensure that we
do not overrun our internal buffer.
In our implementation of
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL.ConvertDevicePathToText() we could first
determine the output length and then allocate buffers but that would nearly
double the code size. Therefore keep the preallocated buffers and truncate
excessive device paths instead.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr_ml_wrapper.h')
0 files changed, 0 insertions, 0 deletions