Buffer overruns in printf
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/4] Buffer overruns in printf
Hi Simon,
Le 23/09/2011 19:38, Simon Glass a ?crit :
Quoted 4 lines
The printf family of functions in U-Boot cannot deal with a situation where the caller provides a buffer which turns out to be too small for the format string. This can result in buffer overflows, stack overflows and other bad behavior.
Indeed overruns can lead to bad behaviors, but in any case, it can never be recovered, because at the root, the problem is that the caller provided inconsistent arguments to printf.
So in essence, you're 'fixing' printf for a design error in printf's caller, instead of fixing the design error.
Amicalement,
Signature · 1 line
Albert.