Re: [PATCH 1/1] console: file should always be non-negative

2022-10-31 Thread Simon Glass
Hi Heinrich, On Sat, 29 Oct 2022 at 20:47, Heinrich Schuchardt wrote: > > > > On 10/30/22 02:43, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 22 Oct 2022 at 03:49, Heinrich Schuchardt > > wrote: > >> > >> We use the parameter file in console function to choose from an array after > >> che

Re: [PATCH 1/1] console: file should always be non-negative

2022-10-29 Thread Heinrich Schuchardt
On 10/30/22 02:43, Simon Glass wrote: Hi Heinrich, On Sat, 22 Oct 2022 at 03:49, Heinrich Schuchardt wrote: We use the parameter file in console function to choose from an array after checking against MAX_FILES but we never check if the value of file is negative. Running ./u-boot -T -l an

Re: [PATCH 1/1] console: file should always be non-negative

2022-10-29 Thread Simon Glass
Hi Heinrich, On Sat, 22 Oct 2022 at 03:49, Heinrich Schuchardt wrote: > > We use the parameter file in console function to choose from an array after > checking against MAX_FILES but we never check if the value of file is > negative. > > Running ./u-boot -T -l and issuing the poweroff command has

[PATCH 1/1] console: file should always be non-negative

2022-10-22 Thread Heinrich Schuchardt
We use the parameter file in console function to choose from an array after checking against MAX_FILES but we never check if the value of file is negative. Running ./u-boot -T -l and issuing the poweroff command has resulted in crashes because os_exit() results in std::ostream::flush() calling U-

[PATCH 1/1] console: file should always be non-negative

2022-10-22 Thread Heinrich Schuchardt
We use the parameter file in console function to choose from an array after checking against MAX_FILES but we never check if the value of file is negative. Running ./u-boot -T -l and issuing the poweroff command has resulted in crashes because os_exit() results in std::ostream::flush() calling U-