Re: [PATCH] net: lwip: fix dhcp_loop()

2024-11-22 Thread Tom Rini
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

Re: [PATCH] net: lwip: fix dhcp_loop()

2024-11-22 Thread Jerome Forissier
On 11/22/24 13:37, Ilias Apalodimas wrote: > On Fri, 22 Nov 2024 at 14:36, 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. Theref

Re: [PATCH] net: lwip: fix dhcp_loop()

2024-11-22 Thread Ilias Apalodimas
On Fri, 22 Nov 2024 at 14:36, 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. >

[PATCH] net: lwip: fix dhcp_loop()

2024-11-22 Thread Jerome Forissier
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 Signed-off-by: Jerome Forissier --