[glib] glib/tests/utf8-validate: add another test for invalid continuation bytes



commit 8ab28b448bfc852b61c515c6fe230f23a5c1298b
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date:   Sat Sep 12 11:38:04 2015 +0300

    glib/tests/utf8-validate: add another test for invalid continuation bytes
    
    This would have caught the regression committed in the course of
    bug #738504.

 glib/tests/utf8-validate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/utf8-validate.c b/glib/tests/utf8-validate.c
index 331d919..c8eb735 100644
--- a/glib/tests/utf8-validate.c
+++ b/glib/tests/utf8-validate.c
@@ -84,6 +84,7 @@ Test test[] = {
   /* continuation bytes */
   { "\x80", -1, 0, FALSE },
   { "\xbf", -1, 0, FALSE },
+  { "\xbf\x80", -1, 0, FALSE },
   { "\x80\xbf", -1, 0, FALSE },
   { "\x80\xbf\x80", -1, 0, FALSE },
   { "\x80\xbf\x80\xbf", -1, 0, FALSE },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]