All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Tyser <ptyser@xes-inc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] Check for NULL prompt in readline_into_buffer()
Date: Sat, 24 Oct 2009 16:37:47 -0500	[thread overview]
Message-ID: <4AE373AB.6040705@xes-inc.com> (raw)
In-Reply-To: <20091024172311.0CF53185D4A5@gemini.denx.de>

Wolfgang Denk wrote:
> Dear Peter Tyser,
> 
> In message <1256259563-32725-1-git-send-email-ptyser@xes-inc.com> you wrote:
>> Previously, passing readline() or readline_into_buffer() a NULL 'prompt'
>> parameter would result in puts() printing garbage when
>> CONFIG_CMDLINE_EDITING was enabled.
> 
> What would be the situation when this happens? I cannot see easily how
> to trigger this bug?

I don't think anything in current code would trigger this.  If some 
boards enabled CONFIG_CMDLINE_EDITING, they would have issues, eg 
board/eltec/bab7xx/misc.c.

So its not fixing a bug, just preventing a future one:)  It was also 
necessary to implement the 5/5 patch "Add 'editenv' command" which is 
how I triggered the "future bug".

In this series, patches 1/2/4 are non-critical cleanup/fixes.  I didn't 
plan on them get merged for the upcoming release, but I think they 
should get picked up at some point.  Patches 3/5 add new features - 
basically support for a new 'editenv' command.  These changes are more 
debatable, so we can discuss if you'd like to include these or not.

Best,
Peter

  reply	other threads:[~2009-10-24 21:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23  0:59 [U-Boot] [PATCH 1/5] Check for NULL prompt in readline_into_buffer() Peter Tyser
2009-10-23  0:59 ` [U-Boot] [PATCH 2/5] cread_line(): Remove unused variables Peter Tyser
2009-10-23  0:59 ` [U-Boot] [PATCH 3/5] readline(): Add ability to modify a string buffer Peter Tyser
2009-10-24 17:26   ` Wolfgang Denk
2009-10-24 21:47     ` Peter Tyser
2009-10-25  5:32       ` Mike Frysinger
2009-10-23  0:59 ` [U-Boot] [PATCH 4/5] _do_setenv(): Delete 0-length environment variables Peter Tyser
2009-10-23  0:59 ` [U-Boot] [PATCH 5/5] Add 'editenv' command Peter Tyser
2009-10-24 17:23 ` [U-Boot] [PATCH 1/5] Check for NULL prompt in readline_into_buffer() Wolfgang Denk
2009-10-24 21:37   ` Peter Tyser [this message]
2009-10-24 21:47     ` Wolfgang Denk
2009-10-24 21:52       ` Peter Tyser
2009-10-24 22:00         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AE373AB.6040705@xes-inc.com \
    --to=ptyser@xes-inc.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.