On 11/6/07, Adrian Bunk <[EMAIL PROTECTED]> wrote: > On Tue, Nov 06, 2007 at 04:05:13PM +0200, Ahmed S. Darwish wrote: > > > > Great, To summarize the discussion. Will there be a problem in > > accepting ASCII and the UTF-8 ASCII _subset_ _only_ and return > > -EINVAL for all other cases/ecnodings ?. > > The UTF-8 ASCII subset is the complete ASCII. > > > i.e. The fragment I sent in a previous message: > > > > /* Filter UTF-8 non-ascii compatible bytes (> 0x7F) */ > > if (!isascii(c)) return -EINVAL; > > /* Filter unwanted ascii chars */ > > if (!isspace(c) && !isgraph(c)) return -EINVAL; > >... > > As I already said, this should work fine. >
I thought you were objecting not handling the remaining non-ASCII UTF-8 bytes. Everything is clear now. A Big thank you to everybody in this thread for your effort on this :). Regards, -- Ahmed S. Darwish Homepage: http://darwish.07.googlepages.com Blog: http://darwish-07.blogspot.com - To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html