Re: [U-Boot] [PATCH] stdio: Fix a possible buffer overflow

2011-09-04 Thread Wolfgang Denk
Dear Bradley Bolen, In message <1314049685.74936.yahoomailclas...@web110204.mail.gq1.yahoo.com> you wrote: > Signed-off-by: Bradley Bolen > --- > The length of the name of a stdio_dev is 16 bytes, but the local > variable to hold it is only 8 bytes. Also, the memcpy should copy > the size of th

[U-Boot] [PATCH] stdio: Fix a possible buffer overflow

2011-08-22 Thread Bradley Bolen
Signed-off-by: Bradley Bolen --- The length of the name of a stdio_dev is 16 bytes, but the local variable to hold it is only 8 bytes. Also, the memcpy should copy the size of the destination, not the size of the source. --- common/stdio.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletio