Evas langauge: Prevent potential buffer overflow and clean code. 31/65931/1
authorTom Hacohen <tom@stosb.com>
Fri, 8 Apr 2016 10:34:53 +0000 (11:34 +0100)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 14 Apr 2016 05:45:46 +0000 (14:45 +0900)
commit7648c1fdfe9032faf4bd587bf0233d5db33bd8ec
tree10af0afb370a45728c60fe5fd5c43630811c811e
parent459d5a3a91406e3516adc8b4499c0fcdd584225e
Evas langauge: Prevent potential buffer overflow and clean code.

We were copying a user defined string into a fixed size buffer
without doing any boundary checks. This commit fixes that.
Also cleaned up similar code that was using hardcoded numbers.

@fix.

Change-Id: If32cdf9fc383cc0d13043693af1179686dcb9f44
src/lib/evas/common/language/evas_language_utils.c