Don't go in an infinite loop if the input text ends in an incomplete
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 Aug 2005 21:10:16 +0000 (21:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 2 Aug 2005 21:10:16 +0000 (21:10 +0000)
2005-08-02  Matthias Clasen  <mclasen@redhat.com>

* glib/gconvert.c (g_convert_with_iconv): Don't go in an
infinite loop if the input text ends in an incomplete multibyte
character.  (#312402, Sebastian Bacher)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gconvert.c

index 43f34b229a12fa89c3ace4c8c871478c64f4b00a..5a80e8646d73d16aa6520e6ca06f61e35db63277 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c (g_convert_with_iconv): Don't go in an
+       infinite loop if the input text ends in an incomplete multibyte
+       character.  (#312402, Sebastian Bacher)
+
        * Bump version
 
        * === Released 2.7.5 ===
index 43f34b229a12fa89c3ace4c8c871478c64f4b00a..5a80e8646d73d16aa6520e6ca06f61e35db63277 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c (g_convert_with_iconv): Don't go in an
+       infinite loop if the input text ends in an incomplete multibyte
+       character.  (#312402, Sebastian Bacher)
+
        * Bump version
 
        * === Released 2.7.5 ===
index 43f34b229a12fa89c3ace4c8c871478c64f4b00a..5a80e8646d73d16aa6520e6ca06f61e35db63277 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c (g_convert_with_iconv): Don't go in an
+       infinite loop if the input text ends in an incomplete multibyte
+       character.  (#312402, Sebastian Bacher)
+
        * Bump version
 
        * === Released 2.7.5 ===
index 43f34b229a12fa89c3ace4c8c871478c64f4b00a..5a80e8646d73d16aa6520e6ca06f61e35db63277 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c (g_convert_with_iconv): Don't go in an
+       infinite loop if the input text ends in an incomplete multibyte
+       character.  (#312402, Sebastian Bacher)
+
        * Bump version
 
        * === Released 2.7.5 ===
index 7f2df24cd835664c84ed2c814612508006830213..4504fd81b1a2de93922ed15784eca6003f949d33 100644 (file)
@@ -544,6 +544,7 @@ g_convert_with_iconv (const gchar *str,
            {
            case EINVAL:
              /* Incomplete text, do not report an error */
+             done = TRUE;
              break;
            case E2BIG:
              {