From: Gisle Aas Date: Mon, 6 Dec 2004 02:59:24 +0000 (-0800) Subject: UTF8_ALLOW_ANYUV should not allow overlong sequences [PATCH] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=618432450ee258c0a450666f1fd0f5b5f5dafcb8;p=p5sagit%2Fp5-mst-13.2.git UTF8_ALLOW_ANYUV should not allow overlong sequences [PATCH] Message-ID: p4raw-id: //depot/perl@23632 --- diff --git a/utf8.h b/utf8.h index d5a8845..376280d 100644 --- a/utf8.h +++ b/utf8.h @@ -183,8 +183,7 @@ encoded character. #define UTF8_ALLOW_FFFF 0x0040 /* Allows also FFFE. */ #define UTF8_ALLOW_LONG 0x0080 #define UTF8_ALLOW_ANYUV (UTF8_ALLOW_EMPTY|UTF8_ALLOW_FE_FF|\ - UTF8_ALLOW_SURROGATE|\ - UTF8_ALLOW_FFFF|UTF8_ALLOW_LONG) + UTF8_ALLOW_SURROGATE|UTF8_ALLOW_FFFF) #define UTF8_ALLOW_ANY 0x00FF #define UTF8_CHECK_ONLY 0x0200