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

Simon Glass sjg at chromium.org
Mon Sep 26 21:02:18 CEST 2011


Hi Wolfgang,

On Mon, Sep 26, 2011 at 11:47 AM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Simon Glass,
>
> In message <CAPnjgZ1Q89Ew2Be2QcjoWF3Nyb+sJ-SxfFunZturMwdLxBc_Wg at mail.gmail.com> you wrote:
>>
>> > If you can find one that fits for all boards? =A0Keep in mind that
>> > printf() gets used before relocation, when available stack space may
>> > be _very_ limited.
>>
>> Yes that is a problem. Perhaps we could changes things so that this
>> CONFIG really only matters prior to relocation (see other thread with
>> Albert) and we could just choose a suitable small value like 256,
>> which seems to be the minimum for most boards.
>
> You are probably addressing a non-issue.  How many related bug reports
> can you find in the last decade or so?
>

Yes probably, it isn't important and is off-topic from my patch anyway.

Regards,
Simon

> 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
> All your people must learn before you can reach for the stars.
>        -- Kirk, "The Gamesters of Triskelion", stardate 3259.2
>


More information about the U-Boot mailing list