mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
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)
This commit is contained in:
parent
486c42ba75
commit
8f6738b925
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
@ -1,3 +1,8 @@
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user