
23 Nov
2024
23 Nov
'24
3:42 a.m.
On Fri, Nov 22, 2024 at 01:35:29PM +0100, Jerome Forissier wrote:
The local variables ipstr, maskstr and gwstr in static function dhcp_loop() 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 Signed-off-by: Jerome Forissier jerome.forissier@linaro.org Reviewed-by: Ilias Apalodimas ilias.apalodimas@linaro.org
Applied to u-boot/master, thanks!
--
Tom