#include "cairo-scaled-font-subsets-private.h"
#include "cairo-truetype-subset-private.h"
+#include <stdio.h>
#include <string.h>
#include <locale.h>
buf = buffer2 + (q - buffer);
strncpy (buf, decimal_point, decimal_point_len);
buf += decimal_point_len;
- strcpy (buf, q + 1);
+
+ //(2017.04.17) Since securitY issue, replace strcpy to strncpy.
+ //strcpy (buf, q + 1);
+ strncpy (buf, q + 1, (buffer + sizeof(buffer)/sizeof(buffer[0])) - (q + 1));
+ //same as strncpy (buf, q + 1, 100 - (q + 1));
+
buf = buffer2;
}
ctx->dummy_surface = evas_gl_pbuffer_surface_create (ctx->evas_gl,
evas_cfg,
1, 1, NULL);
- //evas_gl_config_free (evas_cfg);
+ evas_gl_config_free (evas_cfg);
if (ctx->dummy_surface == NULL) {
free (ctx);