Commit 8f6738b9 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Avoid an array overrun. (Coverity, fix by Pascal Terjan)

2006-04-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
        overrun.  (Coverity, fix by Pascal Terjan)
parent 486c42ba
2006-04-16 Matthias Clasen <mclasen@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
overrun. (Coverity, fix by Pascal Terjan)
2006-04-12 Bastien Nocera <hadess@hadess.net>
reviewed by: Matthias Clasen <mclasen@redhat.com>
......
2006-04-16 Matthias Clasen <mclasen@redhat.com>
* glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
overrun. (Coverity, fix by Pascal Terjan)
2006-04-12 Bastien Nocera <hadess@hadess.net>
reviewed by: Matthias Clasen <mclasen@redhat.com>
......
......@@ -513,7 +513,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt)
{
i = 0;
while (*s && g_ascii_isdigit (*s) && i <= NUM_LEN)
while (*s && g_ascii_isdigit (*s) && i < NUM_LEN)
{
num[pt->num_ints][i] = *s;
++s;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment