mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ramit Bhalla" <ramit.bhalla@wipro.com>
To: <linux-kernel@vger.kernel.org>
Cc: <alan@redhat.com>
Subject: Bug in vsprintf.c - vsscanf()
Date: Mon, 1 Sep 2003 21:44:09 +0530	[thread overview]
Message-ID: <52C85426D39B314381D76DDD480EEE0CFC6983@blr-m3-msg.wipro.com> (raw)

Hi,

There appears to be a bug in vsprintf.c
The function vsscanf (if I'm correct) is the kernel mode equivalent of user mode sscanf.
If one tries to read a hex string using the format "%x" it returns an error if the read buffer contains any character other than 0-9.

I believe the culprit lies on line 640 of vsprintf.c

It should be "isxdigit" instead of "isdigit".

Hope I'm not missing anything here :)

Ramit.

             reply	other threads:[~2003-09-01 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-01 16:14 Ramit Bhalla [this message]
2003-09-01 18:03 ` Randy.Dunlap
2003-09-02  4:59 Ramit Bhalla
2003-09-02 15:32 ` Randy.Dunlap

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=52C85426D39B314381D76DDD480EEE0CFC6983@blr-m3-msg.wipro.com \
    --to=ramit.bhalla@wipro.com \
    --cc=alan@redhat.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

all inboxes | Powered by JetHome®