Re: [U-Boot] [PATCH 1/1] lib/display_options: avoid illegal memory access

2019-05-06 Thread Tom Rini
On Fri, Apr 26, 2019 at 06:39:00PM +0200, Heinrich Schuchardt wrote: > display_options_get_banner_priv() overwrites bytes before the start of the > buffer if the buffer size is less then 3. This case occurs in the Sandbox > when executing the `ut_print` command. > > Correctly handle small buffer

Re: [U-Boot] [PATCH 1/1] lib/display_options: avoid illegal memory access

2019-04-28 Thread Simon Glass
On Fri, 26 Apr 2019 at 10:39, Heinrich Schuchardt wrote: > > display_options_get_banner_priv() overwrites bytes before the start of the > buffer if the buffer size is less then 3. This case occurs in the Sandbox > when executing the `ut_print` command. > > Correctly handle small buffer sizes. Adju

[U-Boot] [PATCH 1/1] lib/display_options: avoid illegal memory access

2019-04-26 Thread Heinrich Schuchardt
display_options_get_banner_priv() overwrites bytes before the start of the buffer if the buffer size is less then 3. This case occurs in the Sandbox when executing the `ut_print` command. Correctly handle small buffer sizes. Adjust the print unit test to catch when bytes before the buffer are over