mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Jan Beulich" <JBeulich@suse.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sscanf: don't ignore field widths for numeric conversions
Date: Fri, 2 Nov 2012 14:32:47 -0700	[thread overview]
Message-ID: <20121102143247.6c581e16.akpm@linux-foundation.org> (raw)
In-Reply-To: <5093EA4802000078000A61D4@nat28.tlf.novell.com>

On Fri, 02 Nov 2012 14:44:08 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:

> This is another step towards better standard conformance. Rather than
> adding a local buffer to store the specified portion of the string
> (with the need to enforce an arbitrary maximum supported width to
> limit the buffer size), do a maximum width conversion and then drop as
> much of it as is necessary to meet the caller's request.
> 
> Also fail on negative field widths.
> 
> ...
>
> +				simple_strtol(str, &next, base) :

simple_strtol() kerndoc says "This function is obsolete.  Please use
kstrtol instead."  Can we?


  reply	other threads:[~2012-11-02 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 14:44 Jan Beulich
2012-11-02 21:32 ` Andrew Morton [this message]
2012-11-05  9:08   ` Jan Beulich

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=20121102143247.6c581e16.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=JBeulich@suse.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome