diff options
author | Matthew Smith <mgsmith@netgate.com> | 2021-01-14 16:51:57 -0600 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-01-21 13:16:58 +0000 |
commit | 38b63a30ca0d8bc5aeea5e683be7b69a6a19a2dd (patch) | |
tree | c6bb76d458ff55997ab1f815016cfb4b9da5bc65 /src/vnet/llc | |
parent | cfa8a89338ded1d5fbfa95dfab539fa61df72230 (diff) |
dpdk: terminate device devargs string
Type: fix
When a device is whitelisted with devargs arguments specified, the
string that is generated and added to conf->eal_init_args is not
explicitly terminated with 0. If the formatted string takes up all
of the memory allocated to the vector which stores it and it is
used later as a string in a format() or printf() call, any nonzero
characters stored in memory at the address immediately following the
memory allocated for the vector will be erroneously appended to the
string.
Terminate the string with 0 to ensure that this does not happen.
Change-Id: I20a78d994daad93bf5aecab5c03d705022e882ec
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/vnet/llc')
0 files changed, 0 insertions, 0 deletions