From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Re[2]: 'password' command in GRUB 2?
Date: Sun, 23 Aug 2009 12:14:46 +0200 [thread overview]
Message-ID: <20090823101446.GA4130@thorin> (raw)
In-Reply-To: <d7ead6de0908210430ue83861fk412b7ded9cad4bb4@mail.gmail.com>
On Fri, Aug 21, 2009 at 01:30:14PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> >
> >> +grub_err_t
> >> +grub_auth_check_authentication (const char *userlist)
> >> +{
> >> + char login[1024] = {0};
> >
> > Please avoid arbitrary limits. If the grub_cmdline_get() API is enforcing
> > them, then this function is wrong and should be using malloc() instead (like,
> > say, getline() or asprintf() do).
> >
>
> If user has a username longer than 1K it can mean only that he is
> trying to execute buffer overflow.
Maybe. Or maybe it's just 8 bytes and we're claiming 1K of stack
unnecessarily.
In any case, GCS mandates that we avoid arbitrary length limits:
http://www.gnu.org/prep/standards/standards.html#Semantics
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-08-23 10:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 17:36 'password' command in GRUB 2? Colin Watson
2009-06-05 17:55 ` Vladimir 'phcoder' Serbinenko
2009-06-05 18:17 ` Re[2]: " Julien RANC
2009-07-26 14:40 ` Felix Zielcke
2009-07-26 16:20 ` Vladimir 'phcoder' Serbinenko
2009-07-26 21:29 ` Vladimir 'phcoder' Serbinenko
2009-08-20 16:44 ` Robert Millan
2009-08-21 11:30 ` Vladimir 'phcoder' Serbinenko
2009-08-22 19:47 ` Vladimir 'phcoder' Serbinenko
2009-08-23 10:14 ` Robert Millan [this message]
2009-08-24 22:36 ` Robert Millan
2009-08-24 23:58 ` Vladimir 'phcoder' Serbinenko
2009-08-25 14:35 ` Felix Zielcke
2009-08-25 14:50 ` Vladimir 'phcoder' Serbinenko
2009-08-25 18:55 ` Michal Suchanek
2009-08-25 19:54 ` Vladimir 'phcoder' Serbinenko
2009-08-26 11:51 ` Michal Suchanek
2009-08-26 17:32 ` Vladimir 'phcoder' Serbinenko
2009-08-28 12:37 ` Robert Millan
2009-08-19 15:08 ` Robert Millan
2009-08-19 15:17 ` Vladimir 'phcoder' Serbinenko
2009-08-20 16:32 ` Robert Millan
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=20090823101446.GA4130@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/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.