Re: bug in sscanf()?

From: Al Viro
Date: Mon Jan 13 2014 - 21:52:52 EST


On Tue, Jan 14, 2014 at 02:47:26AM +0000, Al Viro wrote:
> have now. Something like [completely untested]

And untested it certainly is - at least three missing breaks in there:

> case 'H':
> STORE(signed char, unsigned char);
> break;
> case 'h':
> STORE(short, unsigned short);
> break;
> case 'l':
> STORE(long, unsigned long);
break;
> case 'L':
> case 'j':
> STORE(long long, unsigned long long);
break;
> case 'z':
> case 'Z':
> STORE(long, size_t);
break;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/