From 5f68ea5c8d6b769141b027f96c9a06e85f5f499b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Mar 2014 10:46:28 -0400 Subject: [PATCH] bugfix: prevent out of bounds write in e_intl_locale_parts_get() CIDs 1039848, 1039847 --- src/bin/e_intl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c index d0c879f..b7f808e 100644 --- a/src/bin/e_intl.c +++ b/src/bin/e_intl.c @@ -687,14 +687,14 @@ e_intl_locale_parts_get(const char *locale) codeset[tmp_idx] = 0; tmp_idx = 0; } - else if (tmp_idx < 32) + else if (tmp_idx < 31) codeset[tmp_idx++] = locale_char; else return NULL; break; case 3: /* Gathering modifier */ - if (tmp_idx < 32) + if (tmp_idx < 31) modifier[tmp_idx++] = locale_char; else return NULL; -- 2.7.4