diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2024-11-18 15:31:25 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-22 14:37:49 -0600 |
commit | 7d80e7368e1012355695e1fb580e5b20c8de03b9 (patch) | |
tree | c2756d894c37a5fdb38c75cc4067991e71f5c9a6 /drivers/ddr/microchip/ddr2.c | |
parent | dfe5f16a33453b742a66cabc8ea9a52a33279810 (diff) |
net: lwip: fix get_udev_ipv4_info()
The local variables ipstr, maskstr and gwstr in static function
get_udev_ipv4_info() cannot be pointers to read-only data, since
they may be written to in case the device index is > 0. Therefore
make them char arrays allocated on the stack.
Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reported-by: Adriano Cordova <adrianox@gmail.com>
Link: https://lists.denx.de/pipermail/u-boot/2024-November/572066.html
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions