lkml.org 
[lkml]   [2003]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectBug in vsprintf.c - vsscanf()
Date
From
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.059 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site