From: Wolfgang Denk Date: Sat, 11 Oct 2014 17:16:14 +0200 Subject: [U-Boot] Discussion topics / issues In-Reply-To: <20141011150346.150C038352A@gemini.denx.de> References: <201410071445.50854.marex@denx.de> <20141010122229.B60DC38352B@gemini.denx.de> <5437E778.3050306@myspectrum.nl> <201410101626.41944.marex@denx.de> <543804AF.9050101@myspectrum.nl> <54384450.3000204@myspectrum.nl> <20141011150346.150C038352A@gemini.denx.de> Message-ID: <20141011151614.4784038352A@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jeroen, In message <20141011150346.150C038352A@gemini.denx.de> i wrote: > > Which is "better"? A is obviously much shorter and more elegant; but > B is much more robust - A will happily crash your system when you try > to print a string like "s%s%s%s%s%s%s%s%s%s%s" (not to mention that > this may open a classic attack vector to break into a running system). Ignore me. This example was obviously crap. What I had in mind was something where you would use char *s; ... printf(s); Sorry... 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 Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. - Dick Brandon