Re: [U-Boot] [PATCH v3] cmd_mtdparts.c: prevent printbuffer overflows

2010-03-11 Thread Wolfgang Denk
Dear Anatolij Gustschin, In message <1266967784-12611-1-git-send-email-ag...@denx.de> you wrote: > The length of configured MTDPARTS_DEFAULT string > could be greater than console printbuffer size. > Replace printf() by puts() to avoid potential buffer > overflows. > > Signed-off-by: Anatolij Gus

[U-Boot] [PATCH v3] cmd_mtdparts.c: prevent printbuffer overflows

2010-02-23 Thread Anatolij Gustschin
The length of configured MTDPARTS_DEFAULT string could be greater than console printbuffer size. Replace printf() by puts() to avoid potential buffer overflows. Signed-off-by: Anatolij Gustschin --- Changes since v2: - add comment explaining the reason for usage of puts(). Changes since v1: -