[PATCH] net: lwip: fix get_udev_ipv4_info()
Tom Rini
trini at konsulko.com
Sat Nov 23 03:42:13 CET 2024
On Mon, Nov 18, 2024 at 03:31:25PM +0100, Jerome Forissier wrote:
> 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 at linaro.org>
> Reported-by: Adriano Cordova <adrianox at gmail.com>
> Link: https://lists.denx.de/pipermail/u-boot/2024-November/572066.html
> Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
> Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241122/4a870c5a/attachment.sig>
More information about the U-Boot
mailing list