fix another coverity bug

This commit is contained in:
Matthias Clasen 2006-04-16 05:17:26 +00:00
parent 88cca804f0
commit e379856030
3 changed files with 11 additions and 1 deletions

View File

@ -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-07 Martyn Russell <martyn@imendio.com>
* tests/threadpool-test.c: (test_thread_stop_unused): Removed an

View File

@ -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-07 Martyn Russell <martyn@imendio.com>
* tests/threadpool-test.c: (test_thread_stop_unused): Removed an

View File

@ -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;