discomfitor pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=baf01020077c7e52f2f6049750ceabe749af9260

commit baf01020077c7e52f2f6049750ceabe749af9260
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Thu Mar 13 10:46:28 2014 -0400

    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;

-- 


Reply via email to