don't read a value from an invalid address.

This commit is contained in:
Hermet Park 2016-01-02 16:39:21 +09:00
parent d35a229eab
commit eb7209c1ad
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@ context_lexem_thread_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
!isalnum(*help_end_ptr);
help_end_ptr--);
for (help_ptr = help_end_ptr;
(((isalnum(*help_ptr )) || (*help_ptr == '_')));
((help_ptr >= utf8) &&
((isalnum(*help_ptr )) || (*help_ptr == '_')));
help_ptr--);
if (help_ptr != utf8)
help_ptr++;