[PATCH/RFA] Fix hex number parsing in dw2gencfi.c

Jason Thorpe thorpej@wasabisystems.com
Sun Jun 1 01:47:00 GMT 2003


On Saturday, May 31, 2003, at 06:04  PM, Richard Henderson wrote:

> On Mon, May 26, 2003 at 01:39:38PM -0700, Jason R Thorpe wrote:
>> Actually, I withdraw this patch.  I just remembered that %i is 
>> supposed
>> to handle 0x... type numbers.  I guess there is a problem on my host 
>> system;
>> I will investigate further.
>
> While true, I think this whole section should be written with strtol,
> not sscanf.

Well, it did turn out to be a bug in the 4.4BSD stdio (a FreeBSD system 
on the HP TestDrive also had the problem).  I've installed a fixed libc 
on my systems, so it's no longer an issue for me, and as such, I am 
unlikely to be motivated to rewrite that chunk of code :-)

         -- Jason R. Thorpe <thorpej@wasabisystems.com>



More information about the Binutils mailing list