On Fri, 26 Apr 2019 at 10:39, Heinrich Schuchardt <[email protected]> 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. Adjust the print unit test to catch
> when bytes before the buffer are overwritten.
>
> Signed-off-by: Heinrich Schuchardt <[email protected]>
> ---
> I will take the patch via the u-boot-efi repository.
> ---
>  lib/display_options.c |  4 +++-
>  test/print_ut.c       | 20 ++++++++++++--------
>  2 files changed, 15 insertions(+), 9 deletions(-)
>

Reviewed-by: Simon Glass <[email protected]>
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to