[U-Boot] [PATCH 3/4] Make printf and vprintf safe from buffer overruns

Wolfgang Denk wd at denx.de
Sun Sep 25 22:14:17 CEST 2011


Dear Simon Glass,

In message <CAPnjgZ0-8wU4Hj3pdmfNMWnj4EPUmQ69U_UARaRt5CbqQv0Ofg at mail.gmail.com> you wrote:
> 
> Yes, indeed. Could we go as far as removing CONFIG_SYS_PBSIZE, and
> just use a standard value?

If you can find one that fits for all boards?  Keep in mind that
printf() gets used before relocation, when available stack space may
be _very_ limited.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"And it should be the law: If you use  the  word  `paradigm'  without
knowing  what  the  dictionary  says  it  means,  you  go to jail. No
exceptions."                     - David Jones @ Megatest Corporation


More information about the U-Boot mailing list