[text] Crash when multi-byte utf8 text exceeds max_length
[text] Crash when multi-byte utf8 text exceeds max_length

Bug 1500 - [Patch] clutter_text crash with non one-byte utf8 text exceed
           max_length

In clutter_text_set_text_internal(), when text length in character is greater
than max_length, and there are multi-byte character in it, then the new text
string buffer is not malloc()'ed with right length. This will cause the app to
crash with segmention fault.

Signed-off-by: Emmanuele Bassi <049ee2061f71220e5aaf33f5be422fc2a2b06a44@linux.intel.com>

kerrickstaley/clutter-vala,heysion/clutter-clone,collects/clutter,GNOME/clutter,spatulasnout/clutter,djdeath/clutter-multithreaded,spatulasnout/clutter,dlespiau/clutter,GNOME/clutter,djdeath/clutter-multithreaded,Distrotech/clutter,rkudiyarov/clutter_osx,djdeath/clutter-android,dlespiau/clutter,ebassi/clutter,jigpu/clutter,Distrotech/clutter,collects/clutter,jigpu/clutter,nobled/clutter,kerrickstaley/clutter-vala,jigpu/clutter,heysion/clutter-clone,djdeath/clutter-multithreaded,tardyp/clutter,djdeath/clutter,GNOME/clutter,djdeath/clutter-multithreaded,heysion/clutter-clone,djdeath/clutter,collects/clutter,Distrotech/clutter,GNOME/clutter,djdeath/clutter,spatulasnout/clutter,kerrickstaley/clutter-vala,djdeath/clutter-android,rkudiyarov/clutter_osx,collects/clutter,nobled/clutter,jigpu/clutter,kerrickstaley/clutter-vala,djdeath/clutter-android,spatulasnout/clutter,heysion/clutter-clone,tardyp/clutter,dlespiau/clutter,djdeath/clutter-android,jigpu/clutter,rkudiyarov/clutter_osx,djdeath/clutter-android,djdeath/clutter,nobled/clutter,GNOME/clutter,Distrotech/clutter,djdeath/clutter,Distrotech/clutter,tardyp/clutter,djdeath/clutter,Distrotech/clutter,ebassi/clutter,rkudiyarov/clutter_osx,ebassi/clutter,collects/clutter,heysion/clutter-clone,ebassi/clutter,spatulasnout/clutter,jigpu/clutter,ebassi/clutter