[U-Boot] [PATCH 0/4] Fix fixup_silent_linux() buffer overrun

Doug Anderson dianders at chromium.org
Thu Oct 20 00:30:55 CEST 2011


This set of patches together fixes a buffer overrun in the
fixup_silent_linux() function when we've got a long linux
command line.  It also adds the removal of "earlyprintk" when
we are silencing the linux console.

One thing you will notice is that some of these changes have
unit tests assocated with them.  I wasn't sure exactly where
these should live.  If people would prefer them elsewhere (or
simply removed), just let me know and I'll resubmit.

Doug Anderson (4):
  cmdline: Add linux command line munging tools
  cosmetic: Fixup fixup_silent_linux() for checkpatch
  bootm: Avoid 256-byte overflow in fixup_silent_linux()
  bootm: Add earlyprintk to fixup_silent_linux

 common/Makefile    |    1 +
 common/cmd_bootm.c |  136 +++++++++++++++++++----
 common/cmdline.c   |  318 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/cmdline.h  |   30 +++++
 4 files changed, 465 insertions(+), 20 deletions(-)
 create mode 100644 common/cmdline.c
 create mode 100644 include/cmdline.h

-- 
1.7.3.1



More information about the U-Boot mailing list