Merge "Fix doxygen errors and enable doxygen build for devel-api" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 27 Apr 2016 15:38:28 +0000 (08:38 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 27 Apr 2016 15:38:28 +0000 (08:38 -0700)
dali-toolkit/internal/controls/renderers/svg/nanosvg/nanosvg.cc

index 820e619..e52cb15 100644 (file)
@@ -1244,7 +1244,12 @@ static NSVGcoordinate nsvg__parseCoordinateRaw(const char* str)
 {
     NSVGcoordinate coord = {0, NSVG_UNITS_USER};
     char units[32]="";
-    sscanf(str, "%f%s", &coord.value, units);
+
+    /**
+     * In the original file, the formatted data reading did not specify the string with width limitation.
+     * To prevent the possible overflow, we replace '%s' with '%32s' here.
+     */
+    sscanf(str, "%f%32s", &coord.value, units);
     coord.units = nsvg__parseUnits(units);
     return coord;
 }